Changeset 27983 in vbox
- Timestamp:
- Apr 5, 2010 1:24:19 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/packer/pack_pixelmap.c
r27091 r27983 14 14 int packet_length = 15 15 sizeof( map ) + 16 sizeof( mapsize ) + sizeof(int) + sizeof( uintptr_t);16 sizeof( mapsize ) + sizeof(int) + sizeof(GLint); 17 17 unsigned char *data_ptr; 18 18 … … 27 27 WRITE_DATA( 4, GLsizei, mapsize ); 28 28 WRITE_DATA( 8, int, nodata); 29 WRITE_DATA( 12, uintptr_t,(uintptr_t)values);29 WRITE_DATA( 12, GLint, (GLint)(uintptr_t)values); 30 30 31 31 if (!nodata) -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_pixels.c
r27091 r27983 25 25 sizeof( height ) + 26 26 sizeof( format ) + 27 sizeof( type ) + sizeof(int) + sizeof( uintptr_t);27 sizeof( type ) + sizeof(int) + sizeof(GLint); 28 28 29 29 if (!noimagedata) … … 45 45 WRITE_DATA( 12, GLenum, type ); 46 46 WRITE_DATA( 16, GLint, noimagedata ); 47 WRITE_DATA( 20, uintptr_t,(uintptr_t) pixels );47 WRITE_DATA( 20, GLint, (GLint) (uintptr_t) pixels ); 48 48 49 49 if (!noimagedata) … … 124 124 sizeof( xmove ) + 125 125 sizeof( ymove ) + 126 sizeof( GLuint ) + sizeof( uintptr_t);126 sizeof( GLuint ) + sizeof(GLint); 127 127 128 128 if (!noimagedata) … … 141 141 WRITE_DATA( 20, GLfloat, ymove ); 142 142 WRITE_DATA( 24, GLuint, noimagedata ); 143 WRITE_DATA( 28, uintptr_t,(uintptr_t) bitmap);143 WRITE_DATA( 28, GLint, (GLint) (uintptr_t) bitmap); 144 144 145 145 crBitmapCopy(width, height, (GLubyte *)(data_ptr + 32), bitmap, unpack); -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_stipple.c
r27091 r27983 18 18 19 19 if (nodata) 20 packet_length += sizeof( uintptr_t);20 packet_length += sizeof(GLint); 21 21 else 22 22 packet_length += 32*32/8; … … 26 26 if (nodata) 27 27 { 28 WRITE_DATA_AI( uintptr_t,(uintptr_t)mask);28 WRITE_DATA_AI(GLint, (GLint)(uintptr_t)mask); 29 29 } 30 30 else -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_texture.c
r27091 r27983 27 27 sizeof(internalformat) + 28 28 sizeof(width) + 29 sizeof(border) + sizeof(format) + sizeof(type) + sizeof(int) + sizeof( uintptr_t);29 sizeof(border) + sizeof(format) + sizeof(type) + sizeof(int) + sizeof(GLint); 30 30 31 31 if (!noimagedata) … … 43 43 WRITE_DATA(24, GLenum, type); 44 44 WRITE_DATA(28, int, noimagedata); 45 WRITE_DATA(32, uintptr_t,(uintptr_t) pixels);45 WRITE_DATA(32, GLint, (GLint)(uintptr_t) pixels); 46 46 47 47 if (!noimagedata) … … 73 73 sizeof(width) + 74 74 sizeof(height) + 75 sizeof(border) + sizeof(format) + sizeof(type) + sizeof(int) + sizeof( uintptr_t);75 sizeof(border) + sizeof(format) + sizeof(type) + sizeof(int) + sizeof(GLint); 76 76 77 77 if (!noimagedata) … … 105 105 WRITE_DATA(28, GLenum, type); 106 106 WRITE_DATA(32, int, noimagedata); 107 WRITE_DATA(36, uintptr_t,(uintptr_t) pixels);107 WRITE_DATA(36, GLint, (GLint)(uintptr_t) pixels); 108 108 109 109 if (!noimagedata) … … 154 154 sizeof( format ) + 155 155 sizeof( type ) + 156 sizeof( int ) + sizeof( uintptr_t);156 sizeof( int ) + sizeof(GLint); 157 157 158 158 if (!noimagedata) … … 182 182 WRITE_DATA( 32, GLenum, type ); 183 183 WRITE_DATA( 36, int, noimagedata ); 184 WRITE_DATA( 40, uintptr_t,(uintptr_t) pixels);184 WRITE_DATA( 40, GLint, (GLint)(uintptr_t) pixels); 185 185 186 186 if (!noimagedata) … … 230 230 sizeof( format ) + 231 231 sizeof( type ) + 232 sizeof( int ) + sizeof( uintptr_t);232 sizeof( int ) + sizeof(GLint); 233 233 234 234 if (!noimagedata) … … 258 258 WRITE_DATA( 32, GLenum, type ); 259 259 WRITE_DATA( 36, int, noimagedata ); 260 WRITE_DATA( 40, uintptr_t,(uintptr_t) pixels);260 WRITE_DATA( 40, GLint, (GLint)(uintptr_t) pixels); 261 261 262 262 if (!noimagedata) … … 562 562 sizeof(depth) + 563 563 sizeof(format) + 564 sizeof(type) + sizeof(int) + sizeof( uintptr_t);564 sizeof(type) + sizeof(int) + sizeof(GLint); 565 565 566 566 if (!noimagedata) … … 581 581 WRITE_DATA(36, GLenum, type); 582 582 WRITE_DATA(40, GLint, noimagedata); 583 WRITE_DATA(44, uintptr_t,(uintptr_t) pixels);583 WRITE_DATA(44, GLint, (GLint)(uintptr_t) pixels); 584 584 585 585 if (!noimagedata) … … 612 612 sizeof(width) + 613 613 sizeof(height) + 614 sizeof(format) + sizeof(type) + sizeof(int) + sizeof( uintptr_t);614 sizeof(format) + sizeof(type) + sizeof(int) + sizeof(GLint); 615 615 616 616 if (!noimagedata) … … 629 629 WRITE_DATA(28, GLenum, type); 630 630 WRITE_DATA(32, GLint, noimagedata); 631 WRITE_DATA(36, uintptr_t,(uintptr_t) pixels);631 WRITE_DATA(36, GLint, (GLint)(uintptr_t) pixels); 632 632 633 633 if (!noimagedata) … … 656 656 sizeof(xoffset) + 657 657 sizeof(width) + 658 sizeof(format) + sizeof(type) + sizeof(int) + sizeof( uintptr_t);658 sizeof(format) + sizeof(type) + sizeof(int) + sizeof(GLint); 659 659 660 660 if (!noimagedata) … … 671 671 WRITE_DATA(20, GLenum, type); 672 672 WRITE_DATA(24, GLint, noimagedata); 673 WRITE_DATA(28, uintptr_t,(uintptr_t) pixels);673 WRITE_DATA(28, GLint, (GLint)(uintptr_t) pixels); 674 674 675 675 if (!noimagedata) … … 733 733 sizeof( border ) + 734 734 sizeof( imagesize ) + 735 sizeof( int ) + sizeof( uintptr_t);735 sizeof( int ) + sizeof(GLint); 736 736 737 737 if (!noimagedata) … … 750 750 WRITE_DATA( 24, GLsizei, imagesize ); 751 751 WRITE_DATA( 28, int, noimagedata ); 752 WRITE_DATA( 32, uintptr_t,(uintptr_t) data);752 WRITE_DATA( 32, GLint, (GLint)(uintptr_t) data); 753 753 754 754 if (!noimagedata) { … … 779 779 sizeof( border ) + 780 780 sizeof( imagesize ) + 781 sizeof( int ) + sizeof( uintptr_t);781 sizeof( int ) + sizeof(GLint); 782 782 783 783 if (!noimagedata) … … 798 798 WRITE_DATA( 28, GLsizei, imagesize ); 799 799 WRITE_DATA( 32, int, noimagedata ); 800 WRITE_DATA( 36, uintptr_t,(uintptr_t) data);800 WRITE_DATA( 36, GLint, (GLint)(uintptr_t) data); 801 801 802 802 if (!noimagedata) { … … 828 828 sizeof( border ) + 829 829 sizeof( imagesize ) + 830 sizeof( int ) + sizeof( uintptr_t);830 sizeof( int ) + sizeof(GLint); 831 831 832 832 if (!noimagedata) … … 846 846 WRITE_DATA( 32, GLsizei, imagesize ); 847 847 WRITE_DATA( 36, int, noimagedata ); 848 WRITE_DATA( 40, uintptr_t,(uintptr_t) data);848 WRITE_DATA( 40, GLint, (GLint)(uintptr_t) data); 849 849 850 850 if (!noimagedata) { … … 874 874 sizeof( format ) + 875 875 sizeof( imagesize ) + 876 sizeof( int ) + sizeof( uintptr_t);876 sizeof( int ) + sizeof(GLint); 877 877 878 878 if (!noimagedata) … … 890 890 WRITE_DATA( 24, GLsizei, imagesize ); 891 891 WRITE_DATA( 28, int, noimagedata ); 892 WRITE_DATA( 32, uintptr_t,(uintptr_t) data);892 WRITE_DATA( 32, GLint, (GLint)(uintptr_t) data); 893 893 894 894 if (!noimagedata) { … … 920 920 sizeof( format ) + 921 921 sizeof( imagesize ) + 922 sizeof( int ) + sizeof( uintptr_t);922 sizeof( int ) + sizeof(GLint); 923 923 924 924 if (!noimagedata) … … 938 938 WRITE_DATA( 32, GLsizei, imagesize ); 939 939 WRITE_DATA( 36, int, noimagedata ); 940 WRITE_DATA( 40, uintptr_t,(uintptr_t) data);940 WRITE_DATA( 40, GLint, (GLint)(uintptr_t) data); 941 941 942 942 if (!noimagedata) { … … 970 970 sizeof( format ) + 971 971 sizeof( imagesize ) + 972 sizeof( int ) + sizeof( uintptr_t);972 sizeof( int ) + sizeof(GLint); 973 973 974 974 if (!noimagedata) … … 990 990 WRITE_DATA( 40, GLsizei, imagesize ); 991 991 WRITE_DATA( 44, int, noimagedata ); 992 WRITE_DATA( 48, uintptr_t,(uintptr_t) data);992 WRITE_DATA( 48, GLint, (GLint)(uintptr_t) data); 993 993 994 994 if (!noimagedata) { -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getpixelmap.c
r27091 r27983 68 68 GLvoid *pbo_offset; 69 69 70 pbo_offset = (GLfloat*) ((uintptr_t) *((GL void**)values));70 pbo_offset = (GLfloat*) ((uintptr_t) *((GLint*)values)); 71 71 72 72 cr_server.head_spu->dispatch_table.GetPixelMapfv( map, pbo_offset ); … … 95 95 GLvoid *pbo_offset; 96 96 97 pbo_offset = (GLuint*) ((uintptr_t) *((GL void**)values));97 pbo_offset = (GLuint*) ((uintptr_t) *((GLint*)values)); 98 98 99 99 cr_server.head_spu->dispatch_table.GetPixelMapuiv( map, pbo_offset ); … … 122 122 GLvoid *pbo_offset; 123 123 124 pbo_offset = (GLushort*) ((uintptr_t) *((GL void**)values));124 pbo_offset = (GLushort*) ((uintptr_t) *((GLint*)values)); 125 125 126 126 cr_server.head_spu->dispatch_table.GetPixelMapusv( map, pbo_offset ); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getteximage.c
r27091 r27983 29 29 pbo>4gb (yet?) 30 30 */ 31 pbo_offset = (GLvoid*) ((uintptr_t) *((GL void**)pixels));31 pbo_offset = (GLvoid*) ((uintptr_t) *((GLint*)pixels)); 32 32 33 33 cr_server.head_spu->dispatch_table.GetTexImage(target, level, format, type, pbo_offset); … … 74 74 GLvoid *pbo_offset; 75 75 76 pbo_offset = (GLvoid*) ((uintptr_t) *((GL void**)img));76 pbo_offset = (GLvoid*) ((uintptr_t) *((GLint*)img)); 77 77 78 78 cr_server.head_spu->dispatch_table.GetCompressedTexImageARB(target, level, pbo_offset); … … 106 106 GLvoid *pbo_offset; 107 107 108 pbo_offset = (GLubyte*) ((uintptr_t) *((GL void**)mask));108 pbo_offset = (GLubyte*) ((uintptr_t) *((GLint*)mask)); 109 109 110 110 cr_server.head_spu->dispatch_table.GetPolygonStipple(pbo_offset); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_readpixels.c
r27091 r27983 40 40 pbo>4gb (yet?) 41 41 */ 42 pbo_offset = (GLvoid*) ((uintptr_t) *((GL void**)pixels));42 pbo_offset = (GLvoid*) ((uintptr_t) *((GLint*)pixels)); 43 43 44 44 cr_server.head_spu->dispatch_table.ReadPixels(x, y, width, height, -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_drawpixels.c
r27091 r27983 18 18 19 19 if (noimagedata) 20 pixels = (void*) READ_DATA( sizeof( int ) + 20, uintptr_t);20 pixels = (void*) (uintptr_t) READ_DATA( sizeof( int ) + 20, GLint); 21 21 else 22 22 pixels = DATA_POINTER( sizeof( int ) + 24, GLvoid ); … … 44 44 45 45 if (noimagedata) 46 bitmap = (void*) READ_DATA(sizeof(int) + 28, uintptr_t);46 bitmap = (void*) (uintptr_t) READ_DATA(sizeof(int) + 28, GLint); 47 47 else 48 48 bitmap = DATA_POINTER( sizeof(int) + 32, GLubyte ); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_pixelmap.c
r27091 r27983 15 15 16 16 if (nodata) 17 values = (GLfloat*) READ_DATA(sizeof(int) + 12, uintptr_t);17 values = (GLfloat*) (uintptr_t) READ_DATA(sizeof(int) + 12, GLint); 18 18 else 19 19 values = DATA_POINTER( sizeof( int ) + 16, GLfloat ); … … 31 31 32 32 if (nodata) 33 values = (GLuint*) READ_DATA(sizeof(int) + 12, uintptr_t);33 values = (GLuint*) (uintptr_t) READ_DATA(sizeof(int) + 12, GLint); 34 34 else 35 35 values = DATA_POINTER( sizeof( int ) + 16, GLuint ); … … 47 47 48 48 if (nodata) 49 values = (GLushort*) READ_DATA(sizeof(int) + 12, uintptr_t);49 values = (GLushort*) (uintptr_t) READ_DATA(sizeof(int) + 12, GLint); 50 50 else 51 51 values = DATA_POINTER( sizeof( int ) + 16, GLushort ); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_stipple.c
r27091 r27983 13 13 14 14 if (nodata) 15 mask = (void*) READ_DATA(4, uintptr_t);15 mask = (void*) (uintptr_t) READ_DATA(4, GLint); 16 16 else 17 17 mask = DATA_POINTER( 4, GLubyte ); -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_texture.c
r27091 r27983 31 31 */ 32 32 if ( noimagedata ) 33 pixels = (void*) READ_DATA(sizeof(int)+40, uintptr_t);33 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+40, GLint); 34 34 else 35 35 pixels = DATA_POINTER( sizeof( int ) + 44, GLvoid ); … … 58 58 59 59 if ( noimagedata ) 60 pixels = (void*) READ_DATA(sizeof(int)+40, uintptr_t);60 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+40, GLint); 61 61 else 62 62 pixels = DATA_POINTER( sizeof( int ) + 44, GLvoid ); … … 82 82 83 83 if ( noimagedata ) 84 pixels = (void*) READ_DATA(sizeof(int)+36, uintptr_t);84 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+36, GLint); 85 85 else 86 86 pixels = DATA_POINTER( sizeof( int ) + 40, GLvoid ); … … 104 104 105 105 if ( noimagedata ) 106 pixels = (void*) READ_DATA(sizeof(int)+32, uintptr_t);106 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+32, GLint); 107 107 else 108 108 pixels = DATA_POINTER( sizeof( int ) + 36, GLvoid ); … … 191 191 192 192 if ( noimagedata ) 193 pixels = (void*) READ_DATA(sizeof(int)+44, uintptr_t);193 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+44, GLint); 194 194 else 195 195 pixels = DATA_POINTER( sizeof( int ) + 48, GLvoid ); … … 220 220 221 221 if ( noimagedata ) 222 pixels = (void*) READ_DATA(sizeof(int)+36, uintptr_t);222 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+36, GLint); 223 223 else 224 224 pixels = DATA_POINTER( sizeof( int ) + 40, GLvoid ); … … 246 246 247 247 if ( noimagedata ) 248 pixels = (void*) READ_DATA(sizeof(int)+28, uintptr_t);248 pixels = (void*) (uintptr_t) READ_DATA(sizeof(int)+28, GLint); 249 249 else 250 250 pixels = DATA_POINTER( sizeof( int ) + 32, GLvoid ); … … 343 343 344 344 if( noimagedata ) 345 pixels = (void*) READ_DATA(4+sizeof(int)+36, uintptr_t);345 pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+36, GLint); 346 346 else 347 347 pixels = DATA_POINTER( 4 + sizeof(int) + 40, GLvoid ); … … 366 366 367 367 if ( noimagedata ) 368 pixels = (void*) READ_DATA(4+sizeof(int)+32, uintptr_t);368 pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+32, GLint); 369 369 else 370 370 pixels = DATA_POINTER( 4 + sizeof( int ) + 36, GLvoid ); … … 388 388 389 389 if( noimagedata ) 390 pixels = (void*) READ_DATA(4+sizeof(int)+28, uintptr_t);390 pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+28, GLint); 391 391 else 392 392 pixels = DATA_POINTER( 4 + sizeof(int) + 32, GLvoid ); … … 413 413 414 414 if( noimagedata ) 415 pixels = (void*) READ_DATA(4+sizeof(int)+44, uintptr_t);415 pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+44, GLint); 416 416 else 417 417 pixels = DATA_POINTER( 4 + sizeof(int) + 48, GLvoid ); … … 438 438 439 439 if( noimagedata ) 440 pixels = (void*) READ_DATA(4+sizeof(int)+36, uintptr_t);440 pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+36, GLint); 441 441 else 442 442 pixels = DATA_POINTER( 4 + sizeof(int) + 40, GLvoid ); … … 460 460 461 461 if( noimagedata ) 462 pixels = (void*) READ_DATA(4+sizeof(int)+28, uintptr_t);462 pixels = (void*) (uintptr_t) READ_DATA(4+sizeof(int)+28, GLint); 463 463 else 464 464 pixels = DATA_POINTER( 4 + sizeof(int) + 32, GLvoid );
Note:
See TracChangeset
for help on using the changeset viewer.