Changeset 63199 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Timestamp:
- Aug 9, 2016 11:40:19 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109822
- Location:
- trunk/src/VBox/GuestHost/OpenGL/state_tracker
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_bufferobject.c
r48491 r63199 974 974 CRContext *fromCtx, CRContext *toCtx) 975 975 { 976 CRBufferObjectState *from = &(fromCtx->bufferobject);977 const CRBufferObjectState *to = &(toCtx->bufferobject); 976 /*CRBufferObjectState *from = &(fromCtx->bufferobject); - unused 977 const CRBufferObjectState *to = &(toCtx->bufferobject); - unused */ 978 978 979 979 if (!HaveBufferObjectExtension()) … … 987 987 CRBufferObject *pBufferObj = (CRBufferObject *) data1; 988 988 CRBufferObjectState *pState = (CRBufferObjectState *) data2; 989 (void)key; 989 990 990 991 if (pBufferObj->id && !pBufferObj->hwid) … … 1020 1021 CRContext *fromCtx, CRContext *toCtx) 1021 1022 { 1022 const CRBufferObjectState *from = &(fromCtx->bufferobject);1023 /*const CRBufferObjectState *from = &(fromCtx->bufferobject); - unused */ 1023 1024 CRBufferObjectState *to = &(toCtx->bufferobject); 1024 1025 int i; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c
r51319 r63199 1535 1535 /* XXX todo */ 1536 1536 crWarning("crStateVertexArrayRangeNV not implemented"); 1537 (void)length; (void)pointer; 1537 1538 } 1538 1539 … … 1547 1548 #define CRSTATE_IS_SERVER_CP(cp) (!(cp).enabled || !(cp).p || ((cp).buffer && (cp).buffer->id) || ((cp).locked)) 1548 1549 1550 #if defined(DEBUG) && 0 1549 1551 static void crStateDumpClientPointer(CRClientPointer *cp, const char *name, int i) 1550 1552 { … … 1552 1554 { 1553 1555 crDebug("CP(%s): enabled:%d ptr:%p buffer:%p buffer.name:%i locked: %i %s", 1554 name, cp->enabled, cp->p, cp->buffer, cp->buffer ? cp->buffer->id:-1, (int)cp->locked,1556 name, cp->enabled, cp->p, cp->buffer, cp->buffer ? cp->buffer->id : ~(GLuint)0, (int)cp->locked, 1555 1557 CRSTATE_IS_SERVER_CP(*cp) ? "":"!FAIL!"); 1556 1558 } … … 1558 1560 { 1559 1561 crDebug("CP(%s%i): enabled:%d ptr:%p buffer:%p buffer.name:%i locked: %i %s", 1560 name, i, cp->enabled, cp->p, cp->buffer, cp->buffer ? cp->buffer->id:-1, (int)cp->locked,1562 name, i, cp->enabled, cp->p, cp->buffer, cp->buffer ? cp->buffer->id : ~(GLuint)0, (int)cp->locked, 1561 1563 CRSTATE_IS_SERVER_CP(*cp) ? "":"!FAIL!"); 1562 1564 } 1563 1565 } 1566 #endif 1564 1567 1565 1568 #ifdef DEBUG_misha 1566 1569 /* debugging */ 1567 / /# define CR_NO_SERVER_ARRAYS1570 /*# define CR_NO_SERVER_ARRAYS*/ 1568 1571 #endif 1569 1572 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_current.c
r51313 r63199 366 366 (toCtx->extensions.NV_vertex_program))) { 367 367 const unsigned attribsUsedMask = toCtx->current.attribsUsedMask; 368 int i;369 368 for (i = 1; i < CR_MAX_VERTEX_ATTRIBS; i++) { /* skip zero */ 370 369 if ((attribsUsedMask & (1 << i)) -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_enable.c
r44326 r63199 389 389 case GL_MAP1_VERTEX_ATTRIB15_4_NV: 390 390 { 391 const GLint i = cap - GL_MAP1_VERTEX_ATTRIB0_4_NV;392 g->eval.enableAttrib1D[i ] = val;393 DIRTY(sb->program.map1AttribArrayEnable[i ], neg_bitid);391 const GLint idx = cap - GL_MAP1_VERTEX_ATTRIB0_4_NV; 392 g->eval.enableAttrib1D[idx] = val; 393 DIRTY(sb->program.map1AttribArrayEnable[idx], neg_bitid); 394 394 DIRTY(sb->program.dirty, neg_bitid); 395 395 } … … 412 412 case GL_MAP2_VERTEX_ATTRIB15_4_NV: 413 413 { 414 const GLint i = cap - GL_MAP2_VERTEX_ATTRIB0_4_NV;415 g->eval.enableAttrib2D[i ] = val;416 DIRTY(sb->program.map2AttribArrayEnable[i ], neg_bitid);414 const GLint idx = cap - GL_MAP2_VERTEX_ATTRIB0_4_NV; 415 g->eval.enableAttrib2D[idx] = val; 416 DIRTY(sb->program.map2AttribArrayEnable[idx], neg_bitid); 417 417 DIRTY(sb->program.dirty, neg_bitid); 418 418 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_fence.c
r15532 r63199 13 13 void APIENTRY crStateGenFencesNV(GLsizei n, GLuint *fences) 14 14 { 15 (void)n; (void)fences; 15 16 } 16 17 … … 18 19 void APIENTRY crStateDeleteFencesNV(GLsizei n, const GLuint *fences) 19 20 { 21 (void)n; (void)fences; 20 22 } 21 23 22 24 void APIENTRY crStateSetFenceNV(GLuint fence, GLenum condition) 23 25 { 26 (void)fence; (void)condition; 24 27 } 25 28 26 29 GLboolean APIENTRY crStateTestFenceNV(GLuint fence) 27 30 { 28 return GL_FALSE; 31 (void)fence; 32 return GL_FALSE; 29 33 } 30 34 31 35 void APIENTRY crStateFinishFenceNV(GLuint fence) 32 36 { 37 (void)fence; 33 38 } 34 39 35 40 GLboolean APIENTRY crStateIsFenceNV(GLuint fence) 36 41 { 37 return GL_FALSE; 42 (void)fence; 43 return GL_FALSE; 38 44 } 39 45 40 46 void APIENTRY crStateGetFenceivNV(GLuint fence, GLenum pname, GLint *params) 41 47 { 48 (void)fence; (void)pname; (void)params; 42 49 } 43 50 -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_framebuffer.c
r62814 r63199 228 228 { 229 229 CRContext *g = GetCurrentContext(); 230 CRFramebufferObjectState *fbo = &g->framebufferobject;230 /*CRFramebufferObjectState *fbo = &g->framebufferobject; - unused */ 231 231 int i; 232 232 … … 481 481 /*@todo: move this function somewhere else*/ 482 482 /*return floor of base 2 log of x. log(0)==0*/ 483 unsigned int crLog2Floor(unsigned int x)483 static unsigned int crLog2Floor(unsigned int x) 484 484 { 485 485 x |= (x >> 1); … … 614 614 { 615 615 CRContext *g = GetCurrentContext(); 616 CRFramebufferObjectState *fbo = &g->framebufferobject;616 /*CRFramebufferObjectState *fbo = &g->framebufferobject; - unused */ 617 617 CRFBOAttachmentPoint *aap[2]; 618 618 GLuint cap, i; … … 648 648 { 649 649 CRContext *g = GetCurrentContext(); 650 CRFramebufferObjectState *fbo = &g->framebufferobject;650 /* CRFramebufferObjectState *fbo = &g->framebufferobject; - unused */ 651 651 CRFBOAttachmentPoint *aap[2]; 652 652 GLuint cap, i; … … 686 686 { 687 687 CRContext *g = GetCurrentContext(); 688 CRFramebufferObjectState *fbo = &g->framebufferobject;688 /* CRFramebufferObjectState *fbo = &g->framebufferobject; - unused */ 689 689 CRFBOAttachmentPoint *aap[2]; 690 690 GLuint cap, i; … … 727 727 CRFBOAttachmentPoint *aap[2]; 728 728 CRRenderbufferObject *rb; 729 (void)renderbuffertarget; 729 730 730 731 CRSTATE_CHECKERR(g->current.inBeginEnd, GL_INVALID_OPERATION, "called in begin/end"); … … 872 873 crStateGenerateMipmapEXT(GLenum target) 873 874 { 875 (void)target; 874 876 /*@todo*/ 875 877 } … … 878 880 { 879 881 CRRenderbufferObject *pRBO = (CRRenderbufferObject*) data1; 882 (void)key; (void)data2; 880 883 881 884 diff_api.GenRenderbuffersEXT(1, &pRBO->hwid); … … 943 946 CRContext *ctx = (CRContext*) data2; 944 947 GLint i; 948 (void)key; 945 949 946 950 diff_api.GenFramebuffersEXT(1, &pFBO->hwid); … … 1089 1093 CRContext *g = GetCurrentContext(); 1090 1094 CRFramebufferObject *pFBO = (CRFramebufferObject*) crHashtableSearch(g->shared->fbTable, id); 1091 #if 0 / /def DEBUG_misha1095 #if 0 /*def DEBUG_misha*/ 1092 1096 crDebug("FB id(%d) hw(%d)", id, pFBO ? pFBO->hwid : 0); 1093 1097 #endif -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c
r62492 r63199 136 136 CRContext *ctx = (CRContext*) data2; 137 137 CRGLSLShader *pRealShader; 138 (void) key; 138 (void) key; (void)ctx; 139 139 140 140 pRealShader = crStateGetShaderObj(pShader->id); … … 406 406 static void crStateDbgCheckNoProgramOfId(void *data) 407 407 { 408 (void)data; 408 409 crError("Unexpected Program id"); 409 410 } … … 849 850 } 850 851 851 if (cbData< sizeof(GLsizei))852 if (cbData<(GLsizei)sizeof(GLsizei)) 852 853 { 853 854 crWarning("crStateGLSLProgramCacheUniforms: data too short"); … … 859 860 cbRead = sizeof(GLsizei); 860 861 861 / /crDebug("crStateGLSLProgramCacheUniforms: %i active uniforms", pProgram->cUniforms);862 /*crDebug("crStateGLSLProgramCacheUniforms: %i active uniforms", pProgram->cUniforms);*/ 862 863 863 864 if (pProgram->cUniforms) … … 896 897 pCurrent += cbName; 897 898 898 / /crDebug("crStateGLSLProgramCacheUniforms: uniform[%i]=%d, %s", i, pProgram->pUniforms[i].location, pProgram->pUniforms[i].name);899 /*crDebug("crStateGLSLProgramCacheUniforms: uniform[%i]=%d, %s", i, pProgram->pUniforms[i].location, pProgram->pUniforms[i].name);*/ 899 900 } 900 901 … … 925 926 } 926 927 927 if (cbData< sizeof(GLsizei))928 if (cbData<(GLsizei)sizeof(GLsizei)) 928 929 { 929 930 WARN(("crStateGLSLProgramCacheAttribs: data too short")); … … 991 992 } 992 993 993 / /crDebug("crStateGLSLProgramCacheUniforms: uniform[%i]=%s.", location, pName);994 /*crDebug("crStateGLSLProgramCacheUniforms: uniform[%i]=%s.", location, pName);*/ 994 995 995 996 ((GLint*)*pCurrent)[0] = location; … … 1322 1323 CRGLSLShader *pShader = (CRGLSLShader*) data1; 1323 1324 CRContext *ctx = (CRContext *) data2; 1325 (void)ctx; (void)key; 1324 1326 1325 1327 pShader->hwid = diff_api.CreateShader(pShader->type); … … 1387 1389 CRContext *ctx = (CRContext *) data2; 1388 1390 GLuint i; 1391 (void)key; 1389 1392 1390 1393 pProgram->hwid = diff_api.CreateProgram(); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c
r57423 r63199 76 76 } 77 77 78 void crStateReleaseTextureInternal(CRSharedState *pS, CRContext *pCtx, CRTextureObj *pObj)78 static void crStateReleaseTextureInternal(CRSharedState *pS, CRContext *pCtx, CRTextureObj *pObj) 79 79 { 80 80 Assert(CR_STATE_SHAREDOBJ_USAGE_IS_USED(pObj) || pObj->pinned); … … 102 102 } 103 103 104 void crStateReleaseBufferObjectInternal(CRSharedState *pS, CRContext *pCtx, CRBufferObject *pObj)104 static void crStateReleaseBufferObjectInternal(CRSharedState *pS, CRContext *pCtx, CRBufferObject *pObj) 105 105 { 106 106 Assert(CR_STATE_SHAREDOBJ_USAGE_IS_USED(pObj)); … … 110 110 } 111 111 112 void crStateReleaseFBOInternal(CRSharedState *pS, CRContext *pCtx, CRFramebufferObject *pObj)112 static void crStateReleaseFBOInternal(CRSharedState *pS, CRContext *pCtx, CRFramebufferObject *pObj) 113 113 { 114 114 Assert(CR_STATE_SHAREDOBJ_USAGE_IS_USED(pObj)); … … 118 118 } 119 119 120 void crStateReleaseRBOInternal(CRSharedState *pS, CRContext *pCtx, CRRenderbufferObject *pObj)120 static void crStateReleaseRBOInternal(CRSharedState *pS, CRContext *pCtx, CRRenderbufferObject *pObj) 121 121 { 122 122 Assert(CR_STATE_SHAREDOBJ_USAGE_IS_USED(pObj)); … … 130 130 PCR_STATE_RELEASEOBJ pData = (PCR_STATE_RELEASEOBJ)data2; 131 131 CRTextureObj *pObj = (CRTextureObj *)data1; 132 (void)key; 132 133 crStateReleaseTextureInternal(pData->s, pData->pCtx, pObj); 133 134 } … … 137 138 PCR_STATE_RELEASEOBJ pData = (PCR_STATE_RELEASEOBJ)data2; 138 139 CRBufferObject *pObj = (CRBufferObject *)data1; 140 (void)key; 139 141 crStateReleaseBufferObjectInternal(pData->s, pData->pCtx, pObj); 140 142 } … … 144 146 PCR_STATE_RELEASEOBJ pData = (PCR_STATE_RELEASEOBJ)data2; 145 147 CRFramebufferObject *pObj = (CRFramebufferObject *)data1; 148 (void)key; 146 149 crStateReleaseFBOInternal(pData->s, pData->pCtx, pObj); 147 150 } … … 151 154 PCR_STATE_RELEASEOBJ pData = (PCR_STATE_RELEASEOBJ)data2; 152 155 CRRenderbufferObject *pObj = (CRRenderbufferObject *)data1; 156 (void)key; 153 157 crStateReleaseRBOInternal(pData->s, pData->pCtx, pObj); 154 158 } 159 155 160 156 161 /** 157 162 * Decrement shared state's refcount and delete when it hits zero. 158 163 */ 159 DECLEXPORT(void) 160 crStateFreeShared(CRContext *pContext, CRSharedState *s) 164 #ifndef IN_GUEST 165 DECLEXPORT(void) crStateFreeShared(CRContext *pContext, CRSharedState *s) 166 #else 167 static void crStateFreeShared(CRContext *pContext, CRSharedState *s) 168 #endif 161 169 { 162 170 int32_t refCount = ASMAtomicDecS32(&s->refCount); … … 188 196 } 189 197 190 DECLEXPORT(CRSharedState *) crStateGlobalSharedAcquire() 198 #ifndef IN_GUEST 199 200 DECLEXPORT(CRSharedState *) crStateGlobalSharedAcquire(void) 191 201 { 192 202 if (!gSharedState) … … 199 209 } 200 210 201 DECLEXPORT(void) crStateGlobalSharedRelease( )211 DECLEXPORT(void) crStateGlobalSharedRelease(void) 202 212 { 203 213 crStateFreeShared(NULL, gSharedState); 204 214 } 215 216 #endif /* IN_GUEST */ 205 217 206 218 DECLEXPORT(void) STATE_APIENTRY … … 298 310 */ 299 311 static CRContext * 300 crStateCreateContextId(int i, const CRLimitsState *limits, 301 GLint visBits, CRContext *shareCtx) 312 crStateCreateContextId(int i, const CRLimitsState *limits, GLint visBits, CRContext *shareCtx) 302 313 { 303 314 CRContext *ctx; … … 305 316 int node32 = i >> 5; 306 317 int node = i & 0x1f; 318 (void)limits; 307 319 308 320 if (g_pAvailableContexts[i] != NULL) … … 800 812 { 801 813 /* This no-op function helps smooth code-gen */ 814 (void)target; (void)value; 802 815 } 803 816 … … 806 819 { 807 820 /* This no-op function helps smooth code-gen */ 821 (void)target; (void)value; 808 822 } 809 823 … … 812 826 { 813 827 /* This no-op function helps smooth code-gen */ 828 (void)target; (void)type; (void)count; (void)values; 814 829 } 815 830 … … 818 833 { 819 834 /* This no-op function helps smooth code-gen */ 835 (void)target; (void)index; (void)type; (void)count; (void)values; 820 836 } 821 837 … … 825 841 { 826 842 /* This no-op function helps smooth code-gen */ 827 } 828 829 void crStateVBoxDetachThread() 843 (void)x; (void)y; (void)width; (void)height; (void)format; (void)type; (void)pixels; 844 } 845 846 void crStateVBoxDetachThread(void) 830 847 { 831 848 /* release the context ref so that it can be freed */ … … 834 851 835 852 836 void crStateVBoxAttachThread() 837 { 838 } 853 void crStateVBoxAttachThread(void) 854 { 855 } 856 857 #if 0 /* who's refering to these? */ 839 858 840 859 GLint crStateVBoxCreateContext( GLint con, const char * dpyName, GLint visual, GLint shareCtx ) 841 860 { 861 (void)con; (void)dpyName; (void)visual; (void)shareCtx; 842 862 return 0; 843 863 } … … 845 865 GLint crStateVBoxWindowCreate( GLint con, const char *dpyName, GLint visBits ) 846 866 { 867 (void)con; (void)dpyName; (void)visBits; 847 868 return 0; 848 869 } … … 850 871 void crStateVBoxWindowDestroy( GLint con, GLint window ) 851 872 { 873 (void)con; (void)window; 852 874 } 853 875 854 876 GLint crStateVBoxConCreate(struct VBOXUHGSMI *pHgsmi) 855 877 { 878 (void)pHgsmi; 856 879 return 0; 857 880 } … … 859 882 void crStateVBoxConDestroy(GLint con) 860 883 { 884 (void)con; 861 885 } 862 886 863 887 void crStateVBoxConFlush(GLint con) 864 888 { 865 } 889 (void)con; 890 } 891 892 #endif /* unused? */ -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c
r52263 r63199 14 14 { 15 15 /* nothing - dlists are in shared state */ 16 (void)ctx; 16 17 } 17 18 … … 31 32 } 32 33 33 / /#define CRSTATE_DEBUG_QUERY_HW_STATE34 /*#define CRSTATE_DEBUG_QUERY_HW_STATE*/ 34 35 35 36 #ifndef CRSTATE_DEBUG_QUERY_HW_STATE … … 173 174 CRContext *g = GetCurrentContext(); 174 175 CRStateBits *sb = GetCurrentBits(); 175 CRbitvalue *bitID=g->bitid,*negbitID=g->neg_bitid;176 CRbitvalue /* *bitID=g->bitid, */ *negbitID=g->neg_bitid; 176 177 177 178 CRASSERT(g_bVBoxEnableDiffOnMakeCurrent); … … 819 820 { 820 821 int i; 821 const int gleval_sizes [] = {4, 1, 3, 1, 2, 3, 4, 3, 4};822 const int gleval_sizes_dup[] = {4, 1, 3, 1, 2, 3, 4, 3, 4}; 822 823 823 824 if (CHECKDIRTY(sb->eval.enable, negbitID)) … … 850 851 if (order>0) 851 852 { 852 coeffs = crAlloc(order * gleval_sizes [i] * sizeof(GLfloat));853 coeffs = crAlloc(order * gleval_sizes_dup[i] * sizeof(GLfloat)); 853 854 if (!coeffs) 854 855 { … … 889 890 if (order[0]>0 && order[1]>0) 890 891 { 891 coeffs = crAlloc(order[0] * order[1] * gleval_sizes [i] * sizeof(GLfloat));892 coeffs = crAlloc(order[0] * order[1] * gleval_sizes_dup[i] * sizeof(GLfloat)); 892 893 if (!coeffs) 893 894 { -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_occlude.c
r15532 r63199 138 138 CRContext *g = GetCurrentContext(); 139 139 CROcclusionState *o = &(g->occlusion); 140 (void)target; 140 141 141 142 FLUSH(); … … 323 324 { 324 325 /* Apparently, no occlusion state differencing needed */ 326 (void)bb; (void)bitID; (void)fromCtx; (void)toCtx; 325 327 } 326 328 … … 336 338 * glEndQuery sequence. 337 339 */ 340 (void)bb; (void)bitID; (void)fromCtx; (void)toCtx; 338 341 CRASSERT(!fromCtx->occlusion.currentQueryObject); 339 342 } -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_polygon.txt
r15532 r63199 15 15 :mode:frontMode:PolygonMode,GL_FRONT 16 16 -:stipple:stipple:*diff_api.PolygonStipple ((GLubyte *) to->stipple); 17 +:stipple:*int j;17 +:stipple:*int iStripple; 18 18 +:stipple:*diff_api.PolygonStipple ((GLubyte *) to->stipple); 19 +:stipple:*for ( j=0; j<32; j++)19 +:stipple:*for (iStripple=0; iStripple<32; iStripple++) 20 20 +:stipple:*{ 21 +:stipple:* from->stipple[ j] = to->stipple[j];21 +:stipple:* from->stipple[iStripple] = to->stipple[iStripple]; 22 22 +:stipple:*} -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_program.c
r48491 r63199 2301 2301 CRProgram *pProgram = (CRProgram *) pProg; 2302 2302 uint32_t i; 2303 (void)key; 2303 2304 2304 2305 if (pProgram->isARBprogram) … … 2348 2349 CRProgram *pOrigVP, *pOrigFP; 2349 2350 2350 (void) bForceUpdate; 2351 (void) bForceUpdate; (void)bitID; 2351 2352 2352 2353 /* save original bindings */ -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_stencil.c
r62814 r63199 102 102 static void crStateStencilBufferFunc(CRContext *g, CRStencilBufferState *s, GLenum func, GLint ref, GLuint mask) 103 103 { 104 (void)g; 104 105 s->func = func; 105 106 s->ref = ref; … … 171 172 static void STATE_APIENTRY crStateStencilBufferOp (CRContext *g, CRStencilBufferState *s, GLenum fail, GLenum zfail, GLenum zpass) 172 173 { 174 (void)g; 173 175 s->fail = fail; 174 176 s->passDepthFail = zfail; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texdiff.c
r44947 r63199 1379 1379 struct callback_info *info = (struct callback_info *) cbData; 1380 1380 CRTextureObj *tobj = (CRTextureObj *) texObj; 1381 (void)key; 1382 1381 1383 /* 1382 1384 printf(" Checking %d 0x%x bitid=0x%x\n",tobj->name, tobj->dirty[0], info->bitID[0]); -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_teximage.c
r46235 r63199 575 575 CRContext *g = GetCurrentContext(); 576 576 CRTextureState *t = &(g->texture); 577 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 577 578 CRClientState *c = &(g->client); 579 #endif 578 580 CRTextureObj *tobj; 579 581 CRTextureLevel *tl; 580 582 CRStateBits *sb = GetCurrentBits(); 581 583 CRTextureBits *tb = &(sb->texture); 584 #ifdef CR_STATE_NO_TEXTURE_IMAGE_STORE 585 (void)pixels; 586 #endif 582 587 583 588 FLUSH(); … … 685 690 CRTextureObj *tobj = NULL; 686 691 CRTextureLevel *tl = NULL; 692 (void)x; (void)y; 687 693 688 694 crStateGetTextureObjectAndImage(g, target, level, &tobj, &tl); … … 727 733 CRContext *g = GetCurrentContext(); 728 734 CRTextureState *t = &(g->texture); 735 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 729 736 CRClientState *c = &(g->client); 737 #endif 730 738 CRTextureObj *tobj = NULL; 731 739 CRTextureLevel *tl = NULL; … … 864 872 CRContext *g = GetCurrentContext(); 865 873 CRTextureState *t = &(g->texture); 874 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 866 875 CRClientState *c = &(g->client); 876 #endif 867 877 CRTextureObj *tobj = NULL; 868 878 CRTextureLevel *tl = NULL; 869 879 CRStateBits *sb = GetCurrentBits(); 870 880 CRTextureBits *tb = &(sb->texture); 881 (void)pixels; 871 882 872 883 FLUSH(); … … 959 970 CRContext *g = GetCurrentContext(); 960 971 CRTextureState *t = &(g->texture); 972 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 961 973 CRClientState *c = &(g->client); 974 #endif 962 975 CRStateBits *sb = GetCurrentBits(); 963 976 CRTextureBits *tb = &(sb->texture); … … 965 978 CRTextureObj *tobj = unit->currentTexture1D; 966 979 CRTextureLevel *tl = tobj->level[0] + level; 980 (void)format; (void)type; (void)pixels; 967 981 968 982 FLUSH(); … … 1010 1024 { 1011 1025 CRContext *g = GetCurrentContext(); 1012 CRClientState *c = &(g->client);1013 1026 CRStateBits *sb = GetCurrentBits(); 1014 1027 CRTextureBits *tb = &(sb->texture); 1015 1028 CRTextureObj *tobj; 1016 1029 CRTextureLevel *tl; 1030 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 1031 CRClientState *c = &(g->client); 1017 1032 GLubyte *subimg = NULL; 1018 1033 GLubyte *img = NULL; 1019 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE1020 1034 GLubyte *src; 1021 1035 int i; 1022 1036 #endif 1037 (void)format; (void)type; (void)pixels; 1023 1038 1024 1039 FLUSH(); … … 1105 1120 CRContext *g = GetCurrentContext(); 1106 1121 CRTextureState *t = &(g->texture); 1107 CRClientState *c = &(g->client);1108 1122 CRStateBits *sb = GetCurrentBits(); 1109 1123 CRTextureBits *tb = &(sb->texture); … … 1111 1125 CRTextureObj *tobj = unit->currentTexture3D; 1112 1126 CRTextureLevel *tl = tobj->level[0] + level; 1127 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 1128 CRClientState *c = &(g->client); 1113 1129 GLubyte *subimg = NULL; 1114 1130 GLubyte *img = NULL; 1115 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE1116 1131 GLubyte *src; 1117 1132 int i; 1118 1133 #endif 1134 (void)format; (void)type; (void)pixels; 1119 1135 1120 1136 FLUSH(); … … 1191 1207 CRStateBits *sb = GetCurrentBits(); 1192 1208 CRTextureBits *tb = &(sb->texture); 1209 (void)data; 1193 1210 1194 1211 FLUSH(); … … 1271 1288 CRStateBits *sb = GetCurrentBits(); 1272 1289 CRTextureBits *tb = &(sb->texture); 1290 (void)data; 1273 1291 1274 1292 FLUSH(); … … 1352 1370 CRStateBits *sb = GetCurrentBits(); 1353 1371 CRTextureBits *tb = &(sb->texture); 1372 (void)data; 1354 1373 1355 1374 FLUSH(); … … 1433 1452 CRTextureObj *tobj = unit->currentTexture1D; 1434 1453 CRTextureLevel *tl = tobj->level[0] + level; 1454 (void)format; (void)imageSize; (void)data; 1435 1455 1436 1456 FLUSH(); … … 1490 1510 CRTextureObj *tobj = unit->currentTexture2D; 1491 1511 CRTextureLevel *tl = tobj->level[0] + level; 1512 (void)format; (void)imageSize; (void)data; 1492 1513 1493 1514 FLUSH(); … … 1552 1573 CRTextureObj *tobj = unit->currentTexture3D; 1553 1574 CRTextureLevel *tl = tobj->level[0] + level; 1575 (void)format; (void)imageSize; (void)data; 1554 1576 1555 1577 FLUSH(); … … 1648 1670 { 1649 1671 CRContext *g = GetCurrentContext(); 1672 #ifndef CR_STATE_NO_TEXTURE_IMAGE_STORE 1650 1673 CRClientState *c = &(g->client); 1674 #endif 1651 1675 CRTextureObj *tobj; 1652 1676 CRTextureLevel *tl; -
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_texture.c
r58226 r63199 622 622 { 623 623 GLint i; 624 (void)g; 624 625 for (i = 0; i < n; i++) 625 626 { … … 3390 3391 if (tobj) 3391 3392 { 3392 / / crDebug("tex id(%d), hwid(%d)", tobj->id, tobj->hwid);3393 /* crDebug("tex id(%d), hwid(%d)", tobj->id, tobj->hwid);*/ 3393 3394 } 3394 3395 #endif … … 3407 3408 CRASSERT(diff_api.GenTextures); 3408 3409 diff_api.GenTextures(1, &tobj->hwid); 3409 #if 0 / /def DEBUG_misha3410 #if 0 /*def DEBUG_misha*/ 3410 3411 crDebug("tex id(%d), hwid(%d)", tobj->id, tobj->hwid); 3411 3412 #endif
Note:
See TracChangeset
for help on using the changeset viewer.