Changeset 54158 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Feb 11, 2015 6:57:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp
r53798 r54158 3959 3959 } 3960 3960 3961 # ifdef VBOX_WITH_VMSVGA3D 3962 /** Names for the vmsvga 3d capabilities, prefixed with format type hint char. */ 3963 static const char * const g_apszVmSvgaDevCapNames[] = 3964 { 3965 "x3D", /* = 0 */ 3966 "xMAX_LIGHTS", 3967 "xMAX_TEXTURES", 3968 "xMAX_CLIP_PLANES", 3969 "xVERTEX_SHADER_VERSION", 3970 "xVERTEX_SHADER", 3971 "xFRAGMENT_SHADER_VERSION", 3972 "xFRAGMENT_SHADER", 3973 "xMAX_RENDER_TARGETS", 3974 "xS23E8_TEXTURES", 3975 "xS10E5_TEXTURES", 3976 "xMAX_FIXED_VERTEXBLEND", 3977 "xD16_BUFFER_FORMAT", 3978 "xD24S8_BUFFER_FORMAT", 3979 "xD24X8_BUFFER_FORMAT", 3980 "xQUERY_TYPES", 3981 "xTEXTURE_GRADIENT_SAMPLING", 3982 "rMAX_POINT_SIZE", 3983 "xMAX_SHADER_TEXTURES", 3984 "xMAX_TEXTURE_WIDTH", 3985 "xMAX_TEXTURE_HEIGHT", 3986 "xMAX_VOLUME_EXTENT", 3987 "xMAX_TEXTURE_REPEAT", 3988 "xMAX_TEXTURE_ASPECT_RATIO", 3989 "xMAX_TEXTURE_ANISOTROPY", 3990 "xMAX_PRIMITIVE_COUNT", 3991 "xMAX_VERTEX_INDEX", 3992 "xMAX_VERTEX_SHADER_INSTRUCTIONS", 3993 "xMAX_FRAGMENT_SHADER_INSTRUCTIONS", 3994 "xMAX_VERTEX_SHADER_TEMPS", 3995 "xMAX_FRAGMENT_SHADER_TEMPS", 3996 "xTEXTURE_OPS", 3997 "xSURFACEFMT_X8R8G8B8", 3998 "xSURFACEFMT_A8R8G8B8", 3999 "xSURFACEFMT_A2R10G10B10", 4000 "xSURFACEFMT_X1R5G5B5", 4001 "xSURFACEFMT_A1R5G5B5", 4002 "xSURFACEFMT_A4R4G4B4", 4003 "xSURFACEFMT_R5G6B5", 4004 "xSURFACEFMT_LUMINANCE16", 4005 "xSURFACEFMT_LUMINANCE8_ALPHA8", 4006 "xSURFACEFMT_ALPHA8", 4007 "xSURFACEFMT_LUMINANCE8", 4008 "xSURFACEFMT_Z_D16", 4009 "xSURFACEFMT_Z_D24S8", 4010 "xSURFACEFMT_Z_D24X8", 4011 "xSURFACEFMT_DXT1", 4012 "xSURFACEFMT_DXT2", 4013 "xSURFACEFMT_DXT3", 4014 "xSURFACEFMT_DXT4", 4015 "xSURFACEFMT_DXT5", 4016 "xSURFACEFMT_BUMPX8L8V8U8", 4017 "xSURFACEFMT_A2W10V10U10", 4018 "xSURFACEFMT_BUMPU8V8", 4019 "xSURFACEFMT_Q8W8V8U8", 4020 "xSURFACEFMT_CxV8U8", 4021 "xSURFACEFMT_R_S10E5", 4022 "xSURFACEFMT_R_S23E8", 4023 "xSURFACEFMT_RG_S10E5", 4024 "xSURFACEFMT_RG_S23E8", 4025 "xSURFACEFMT_ARGB_S10E5", 4026 "xSURFACEFMT_ARGB_S23E8", 4027 "xMISSING62", 4028 "xMAX_VERTEX_SHADER_TEXTURES", 4029 "xMAX_SIMULTANEOUS_RENDER_TARGETS", 4030 "xSURFACEFMT_V16U16", 4031 "xSURFACEFMT_G16R16", 4032 "xSURFACEFMT_A16B16G16R16", 4033 "xSURFACEFMT_UYVY", 4034 "xSURFACEFMT_YUY2", 4035 "xMULTISAMPLE_NONMASKABLESAMPLES", 4036 "xMULTISAMPLE_MASKABLESAMPLES", 4037 "xALPHATOCOVERAGE", 4038 "xSUPERSAMPLE", 4039 "xAUTOGENMIPMAPS", 4040 "xSURFACEFMT_NV12", 4041 "xSURFACEFMT_AYUV", 4042 "xMAX_CONTEXT_IDS", 4043 "xMAX_SURFACE_IDS", 4044 "xSURFACEFMT_Z_DF16", 4045 "xSURFACEFMT_Z_DF24", 4046 "xSURFACEFMT_Z_D24S8_INT", 4047 "xSURFACEFMT_BC4_UNORM", 4048 "xSURFACEFMT_BC5_UNORM", /* 83 */ 4049 }; 4050 # endif 4051 3961 4052 3962 4053 /** … … 3980 4071 if (RT_SUCCESS(rc)) 3981 4072 { 4073 bool fSavedBuffering = RTLogRelSetBuffering(true); 3982 4074 SVGA3dCapsRecord *pCaps; 3983 4075 SVGA3dCapPair *pData; … … 4003 4095 pData[idxCap][1] = val; 4004 4096 idxCap++; 4097 if (g_apszVmSvgaDevCapNames[i][0] == 'x') 4098 LogRel(("VMSVGA3d: cap[%u]=%#010x {%s}\n", i, val, &g_apszVmSvgaDevCapNames[i][1])); 4099 else 4100 LogRel(("VMSVGA3d: cap[%u]=%d.%04u {%s}\n", i, (int)(float)val, (unsigned)((float)val * 10000) % 10000, 4101 &g_apszVmSvgaDevCapNames[i][1])); 4005 4102 } 4103 else 4104 LogRel(("VMSVGA3d: cap[%u]=failed rc=%Rrc! {%s}\n", i, rc, &g_apszVmSvgaDevCapNames[i][1])); 4006 4105 } 4007 4106 pCaps->header.length = (sizeof(pCaps->header) + idxCap * sizeof(SVGA3dCapPair)) / sizeof(uint32_t); … … 4010 4109 /* Mark end of record array. */ 4011 4110 pCaps->header.length = 0; 4111 4112 RTLogRelSetBuffering(fSavedBuffering); 4012 4113 } 4013 4114 }
Note:
See TracChangeset
for help on using the changeset viewer.