Changeset 49264 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Oct 23, 2013 5:10:57 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 90177
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/Makefile.kmk
r46747 r49264 580 580 VBoxOGLpackspu_DEFS.win += VBOX_WITH_CRHGSMI 581 581 endif 582 ifdef VBOX_WITH_CRDUMPER 583 VBoxOGLpackspu_DEFS += VBOX_WITH_CRDUMPER 584 endif 585 ifdef VBOX_WITH_CRPACKSPU_DUMPER 586 VBoxOGLpackspu_DEFS += VBOX_WITH_CRPACKSPU_DUMPER 587 endif 582 588 ifdef VBOX_WITH_WDDM 583 589 VBoxOGLpackspu_DEFS.win += VBOX_WITH_WDDM -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu.h
r46059 r49264 20 20 #include "cr_threads.h" 21 21 #include "state/cr_client.h" 22 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 23 # include "cr_dump.h" 24 #endif 22 25 23 26 typedef struct thread_info_t ThreadInfo; … … 69 72 #if defined(WINDOWS) && defined(VBOX_WITH_WDDM) 70 73 bool bRunningUnderWDDM; 74 #endif 75 76 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 77 SPUDispatchTable self; 78 79 CR_RECORDER Recorder; 80 CR_DBGPRINT_DUMPER Dumper; 71 81 #endif 72 82 -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_glsl.c
r45027 r49264 146 146 } 147 147 148 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 149 static void packspu_RecCheckInitRec() 150 { 151 if (pack_spu.Recorder.pDumper) 152 return; 153 154 crDmpDbgPrintInit(&pack_spu.Dumper); 155 156 crRecInit(&pack_spu.Recorder, NULL /*pBlitter: we do not support blitter operations here*/, &pack_spu.self, &pack_spu.Dumper.Base); 157 } 158 #endif 159 148 160 void PACKSPU_APIENTRY packspu_LinkProgram(GLuint program) 149 161 { 162 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 163 GLint linkStatus = 0; 164 #endif 165 150 166 crStateLinkProgram(program); 151 167 crPackLinkProgram(program); 152 } 168 169 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 170 pack_spu.self.GetObjectParameterivARB(program, GL_OBJECT_LINK_STATUS_ARB, &linkStatus); 171 Assert(linkStatus); 172 if (!linkStatus) 173 { 174 CRContext *ctx = crStateGetCurrent(); 175 packspu_RecCheckInitRec(); 176 crRecDumpProgram(&pack_spu.Recorder, ctx, program, program); 177 } 178 #endif 179 } 180 181 void PACKSPU_APIENTRY packspu_CompileShader(GLuint shader) 182 { 183 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 184 GLint compileStatus = 0; 185 #endif 186 187 // crStateCompileShader(shader); 188 crPackCompileShader(shader); 189 190 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 191 pack_spu.self.GetObjectParameterivARB(shader, GL_OBJECT_COMPILE_STATUS_ARB, &compileStatus); 192 Assert(compileStatus); 193 if (!compileStatus) 194 { 195 CRContext *ctx = crStateGetCurrent(); 196 packspu_RecCheckInitRec(); 197 crRecDumpShader(&pack_spu.Recorder, ctx, shader, shader); 198 } 199 #endif 200 } 201 -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c
r42536 r49264 51 51 #endif 52 52 53 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 54 memset(&pack_spu.Dumper, 0, sizeof (pack_spu.Dumper)); 55 #endif 56 53 57 if (!CRPACKSPU_IS_WDDM_CRHGSMI()) 54 58 { … … 76 80 packSPUSelfDispatch(SPUDispatchTable *self) 77 81 { 82 #ifdef VBOX_WITH_CRPACKSPU_DUMPER 83 crSPUInitDispatchTable( &(pack_spu.self) ); 84 crSPUCopyDispatchTable( &(pack_spu.self), self ); 85 #else 78 86 (void)self; 87 #endif 79 88 } 80 89 -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special
r48999 r49264 130 130 StringMarkerGREMEDY 131 131 GenTextures 132 CompileShader
Note:
See TracChangeset
for help on using the changeset viewer.