Changeset 73223 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Timestamp:
- Jul 18, 2018 8:07:50 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 8 8 /branches/VBox-5.0:104445,104938,104943,104950,104952-104953,104987-104988,104990,106453 9 9 /branches/VBox-5.1:112367,115992,116543,116550,116568,116573 10 /branches/VBox-5.2:120083,120099,120213,120221,120239 10 /branches/VBox-5.2:120083,120099,120213,120221,120239,123597-123598,123600-123601,123755 11 11 /branches/andy/draganddrop:90781-91268 12 12 /branches/andy/guestctrl20:78916,78930
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 8 8 /branches/VBox-5.0/src/VBox:104938,104943,104950,104987-104988,104990,106453 9 9 /branches/VBox-5.1/src/VBox:112367,116543,116550,116568,116573 10 /branches/VBox-5.2/src/VBox:120083,120099,120213,120221,120239 10 /branches/VBox-5.2/src/VBox:120083,120099,120213,120221,120239,123597-123598,123600-123601,123755 11 11 /branches/andy/draganddrop/src/VBox:90781-91268 12 12 /branches/andy/guestctrl20/src/VBox:78916,78930
-
- Property svn:mergeinfo
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_drawpixels.c
r69390 r73223 8 8 #include "cr_error.h" 9 9 10 #include "state/cr_bufferobject.h" 11 10 12 void crUnpackDrawPixels( void ) 11 13 { … … 16 18 GLint noimagedata = READ_DATA( sizeof( int ) + 16, GLint ); 17 19 GLvoid *pixels; 20 21 if (noimagedata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB)) 22 return; 18 23 19 24 if (noimagedata) … … 42 47 GLuint noimagedata = READ_DATA( sizeof( int ) + 24, GLuint ); 43 48 GLubyte *bitmap; 49 50 if (noimagedata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB)) 51 return; 44 52 45 53 if (noimagedata) -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_pixelmap.c
r69390 r73223 6 6 7 7 #include "unpacker.h" 8 #include "state/cr_bufferobject.h" 8 9 9 10 void crUnpackPixelMapfv( void ) … … 13 14 int nodata = READ_DATA( sizeof(int) + 8, int); 14 15 GLfloat *values; 16 17 if (nodata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB)) 18 return; 15 19 16 20 if (nodata) … … 30 34 GLuint *values; 31 35 36 if (nodata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB)) 37 return; 38 32 39 if (nodata) 33 40 values = (GLuint*) (uintptr_t) READ_DATA(sizeof(int) + 12, GLint); … … 46 53 GLushort *values; 47 54 55 if (nodata && !crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB)) 56 return; 57 48 58 if (nodata) 49 59 values = (GLushort*) (uintptr_t) READ_DATA(sizeof(int) + 12, GLint); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_program.c
r71903 r73223 92 92 void crUnpackExtendAreProgramsResidentNV(void) 93 93 { 94 GLsizei n = READ_DATA(8, GLsizei); 95 const GLuint *programs = DATA_POINTER(12, const GLuint); 96 SET_RETURN_PTR(12 + n * sizeof(GLuint)); 97 SET_WRITEBACK_PTR(20 + n * sizeof(GLuint)); 98 (void) cr_unpackDispatch.AreProgramsResidentNV(n, programs, NULL); 94 GLsizei n = READ_DATA(8, GLsizei); 95 const GLuint *programs = DATA_POINTER(12, const GLuint); 96 97 if (n > UINT32_MAX / sizeof(GLuint) / 4 || !DATA_POINTER_CHECK(20 + n * sizeof(GLuint))) 98 { 99 crError("crUnpackExtendAreProgramsResidentNV: %d is out of range", n); 100 return; 101 } 102 103 SET_RETURN_PTR(12 + n * sizeof(GLuint)); 104 SET_WRITEBACK_PTR(20 + n * sizeof(GLuint)); 105 (void) cr_unpackDispatch.AreProgramsResidentNV(n, programs, NULL); 99 106 } 100 107 … … 215 222 void crUnpackExtendGetProgramNamedParameterdvNV(void) 216 223 { 217 GLuint id = READ_DATA(8, GLuint); 218 GLsizei len = READ_DATA(12, GLsizei); 219 const GLubyte *name = DATA_POINTER(16, GLubyte); 220 SET_RETURN_PTR(16+len); 221 SET_WRITEBACK_PTR(16+len+8); 222 cr_unpackDispatch.GetProgramNamedParameterdvNV(id, len, name, NULL); 224 GLuint id = READ_DATA(8, GLuint); 225 GLsizei len = READ_DATA(12, GLsizei); 226 const GLubyte *name = DATA_POINTER(16, GLubyte); 227 228 if (len > UINT32_MAX / 4 || !DATA_POINTER_CHECK(16 + len + 8)) 229 { 230 crError("crUnpackExtendGetProgramNamedParameterdvNV: len %d is out of range", len); 231 return; 232 } 233 234 SET_RETURN_PTR(16+len); 235 SET_WRITEBACK_PTR(16+len+8); 236 cr_unpackDispatch.GetProgramNamedParameterdvNV(id, len, name, NULL); 223 237 } 224 238 225 239 void crUnpackExtendGetProgramNamedParameterfvNV(void) 226 240 { 227 GLuint id = READ_DATA(8, GLuint); 228 GLsizei len = READ_DATA(12, GLsizei); 229 const GLubyte *name = DATA_POINTER(16, GLubyte); 230 SET_RETURN_PTR(16+len); 231 SET_WRITEBACK_PTR(16+len+8); 232 cr_unpackDispatch.GetProgramNamedParameterfvNV(id, len, name, NULL); 241 GLuint id = READ_DATA(8, GLuint); 242 GLsizei len = READ_DATA(12, GLsizei); 243 const GLubyte *name = DATA_POINTER(16, GLubyte); 244 245 if (len > UINT32_MAX / 4 || !DATA_POINTER_CHECK(16 + len + 8)) 246 { 247 crError("crUnpackExtendGetProgramNamedParameterfvNV: len %d is out of range", len); 248 return; 249 } 250 251 SET_RETURN_PTR(16+len); 252 SET_WRITEBACK_PTR(16+len+8); 253 cr_unpackDispatch.GetProgramNamedParameterfvNV(id, len, name, NULL); 233 254 } 234 255 -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_texture.c
r70601 r73223 327 327 GLsizei n = READ_DATA( 8, GLsizei ); 328 328 const GLuint *textures = DATA_POINTER( 12, const GLuint ); 329 330 if (n > UINT32_MAX / sizeof(GLuint) / 4 || !DATA_POINTER_CHECK(20 + n * sizeof(GLuint))) 331 { 332 crError("crUnpackExtendAreTexturesResident: %d is out of range", n); 333 return; 334 } 335 329 336 SET_RETURN_PTR(12 + n * sizeof(GLuint)); 330 337 SET_WRITEBACK_PTR(20 + n * sizeof(GLuint));
Note:
See TracChangeset
for help on using the changeset viewer.