Changeset 78190 in vbox for trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_client.c
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo
-
old new 9 9 /branches/VBox-5.1:112367,115992,116543,116550,116568,116573 10 10 /branches/VBox-5.2:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124260,124263,124271,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812 11 /branches/aeichner/vbox-chromium-cleanup:129816,129818-129851,129853-129861,129871-129872,129876,129880,129882,130013-130015,130036,130094-130095 11 12 /branches/andy/draganddrop:90781-91268 12 13 /branches/andy/guestctrl20:78916,78930
-
- Property svn:mergeinfo
-
trunk/src/VBox
- Property svn:mergeinfo
-
old new 9 9 /branches/VBox-5.1/src/VBox:112367,116543,116550,116568,116573 10 10 /branches/VBox-5.2/src/VBox:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124263,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812,127158-127159,127162-127167,127180 11 /branches/aeichner/vbox-chromium-cleanup/src/VBox:129818-129851,129853-129861,129871-129872,129876,129880,129882,130013-130015,130094-130095 11 12 /branches/andy/draganddrop/src/VBox:90781-91268 12 13 /branches/andy/guestctrl20/src/VBox:78916,78930
-
- Property svn:mergeinfo
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_client.c
r69310 r78190 15 15 #if CR_ARB_vertex_buffer_object 16 16 GET_CONTEXT(ctx); 17 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 18 if (pack_spu.swap) 19 crPackFogCoordPointerEXTSWAP( type, stride, pointer ); 20 else 21 crPackFogCoordPointerEXT( type, stride, pointer ); 17 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 18 crPackFogCoordPointerEXT( type, stride, pointer ); 22 19 } 23 20 #endif … … 30 27 GET_CONTEXT(ctx); 31 28 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 32 if (pack_spu.swap) 33 crPackColorPointerSWAP( size, type, stride, pointer ); 34 else 35 crPackColorPointer( size, type, stride, pointer ); 29 crPackColorPointer( size, type, stride, pointer ); 36 30 } 37 31 #endif … … 44 38 GET_CONTEXT(ctx); 45 39 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 46 if (pack_spu.swap) 47 crPackSecondaryColorPointerEXTSWAP( size, type, stride, pointer ); 48 else 49 crPackSecondaryColorPointerEXT( size, type, stride, pointer ); 40 crPackSecondaryColorPointerEXT( size, type, stride, pointer ); 50 41 } 51 42 #endif … … 59 50 CRASSERT(ctx->clientState->extensions.ARB_vertex_buffer_object); 60 51 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 61 if (pack_spu.swap) 62 crPackVertexPointerSWAP( size, type, stride, pointer ); 63 else 64 crPackVertexPointer( size, type, stride, pointer ); 52 crPackVertexPointer( size, type, stride, pointer ); 65 53 } 66 54 #endif … … 73 61 GET_CONTEXT(ctx); 74 62 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 75 if (pack_spu.swap) 76 crPackTexCoordPointerSWAP( size, type, stride, pointer ); 77 else 78 crPackTexCoordPointer( size, type, stride, pointer ); 63 crPackTexCoordPointer( size, type, stride, pointer ); 79 64 } 80 65 #endif … … 87 72 GET_CONTEXT(ctx); 88 73 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 89 if (pack_spu.swap) 90 crPackNormalPointerSWAP( type, stride, pointer ); 91 else 92 crPackNormalPointer( type, stride, pointer ); 74 crPackNormalPointer( type, stride, pointer ); 93 75 } 94 76 #endif … … 101 83 GET_CONTEXT(ctx); 102 84 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 103 if (pack_spu.swap) 104 crPackEdgeFlagPointerSWAP( stride, pointer ); 105 else 106 crPackEdgeFlagPointer( stride, pointer ); 85 crPackEdgeFlagPointer( stride, pointer ); 107 86 } 108 87 #endif … … 115 94 GET_CONTEXT(ctx); 116 95 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 117 if (pack_spu.swap) 118 crPackVertexAttribPointerARBSWAP( index, size, type, normalized, stride, pointer ); 119 else 120 crPackVertexAttribPointerARB( index, size, type, normalized, stride, pointer ); 96 crPackVertexAttribPointerARB( index, size, type, normalized, stride, pointer ); 121 97 } 122 98 #endif … … 129 105 GET_CONTEXT(ctx); 130 106 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 131 if (pack_spu.swap) 132 crPackVertexAttribPointerNVSWAP( index, size, type, stride, pointer ); 133 else 134 crPackVertexAttribPointerNV( index, size, type, stride, pointer ); 107 crPackVertexAttribPointerNV( index, size, type, stride, pointer ); 135 108 } 136 109 #endif … … 143 116 GET_CONTEXT(ctx); 144 117 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 145 if (pack_spu.swap) 146 crPackIndexPointerSWAP( type, stride, pointer ); 147 else 148 crPackIndexPointer( type, stride, pointer ); 118 crPackIndexPointer( type, stride, pointer ); 149 119 } 150 120 #endif … … 162 132 GET_CONTEXT(ctx); 163 133 if (ctx->clientState->extensions.ARB_vertex_buffer_object) { 164 if (pack_spu.swap) 165 crPackInterleavedArraysSWAP( format, stride, pointer ); 166 else 167 crPackInterleavedArrays( format, stride, pointer ); 134 crPackInterleavedArrays( format, stride, pointer ); 168 135 } 169 136 #endif … … 380 347 381 348 /* Send the DrawArrays command over the wire */ 382 if (pack_spu.swap) 383 crPackArrayElementSWAP( index ); 384 else 385 crPackArrayElement( index ); 349 crPackArrayElement( index ); 386 350 387 351 if (cZvaValues) … … 400 364 #endif 401 365 402 if (pack_spu.swap) 403 crPackExpandArrayElementSWAP( index, clientState, cZvaValues ? aAttrib : NULL ); 404 else 405 crPackExpandArrayElement( index, clientState, cZvaValues ? aAttrib : NULL ); 366 crPackExpandArrayElement( index, clientState, cZvaValues ? aAttrib : NULL ); 406 367 407 368 #ifdef CR_FORCE_ZVA_SERVER_ARRAY … … 529 490 530 491 /* Send the DrawArrays command over the wire */ 531 if (pack_spu.swap) 532 crPackDrawElementsSWAP( mode, count, type, indices ); 533 else 534 crPackDrawElements( mode, count, type, indices ); 492 crPackDrawElements( mode, count, type, indices ); 535 493 536 494 if (cZvaValues) … … 549 507 #endif 550 508 551 if (pack_spu.swap) 552 crPackExpandDrawElementsSWAP( mode, count, type, indices, clientState, cZvaValues ? aAttrib : NULL ); 553 else 554 { 555 //packspu_Begin(mode); 556 crPackExpandDrawElements( mode, count, type, indices, clientState, cZvaValues ? aAttrib : NULL ); 557 //packspu_End(); 558 } 509 //packspu_Begin(mode); 510 crPackExpandDrawElements( mode, count, type, indices, clientState, cZvaValues ? aAttrib : NULL ); 511 //packspu_End(); 559 512 560 513 #ifdef CR_FORCE_ZVA_SERVER_ARRAY … … 615 568 616 569 /* Send the DrawRangeElements command over the wire */ 617 if (pack_spu.swap) 618 crPackDrawRangeElementsSWAP( mode, start, end, count, type, indices ); 619 else 620 crPackDrawRangeElements( mode, start, end, count, type, indices ); 570 crPackDrawRangeElements( mode, start, end, count, type, indices ); 621 571 622 572 if (cZvaValues) … … 634 584 #endif 635 585 636 if (pack_spu.swap) 637 crPackExpandDrawRangeElementsSWAP( mode, start, end, count, type, indices, clientState, cZvaValues ? aAttrib : NULL ); 638 else 639 { 640 crPackExpandDrawRangeElements( mode, start, end, count, type, indices, clientState, cZvaValues ? aAttrib : NULL ); 641 } 586 crPackExpandDrawRangeElements( mode, start, end, count, type, indices, clientState, cZvaValues ? aAttrib : NULL ); 642 587 643 588 #ifdef CR_FORCE_ZVA_SERVER_ARRAY … … 709 654 710 655 /* Send the DrawArrays command over the wire */ 711 if (pack_spu.swap) 712 crPackDrawArraysSWAP( mode, first, count ); 713 else 714 crPackDrawArrays( mode, first, count ); 656 crPackDrawArrays( mode, first, count ); 715 657 716 658 if (cZvaValues) … … 729 671 #endif 730 672 731 if (pack_spu.swap) 732 crPackExpandDrawArraysSWAP( mode, first, count, clientState, cZvaValues ? aAttrib : NULL ); 733 else 734 crPackExpandDrawArrays( mode, first, count, clientState, cZvaValues ? aAttrib : NULL ); 673 crPackExpandDrawArrays( mode, first, count, clientState, cZvaValues ? aAttrib : NULL ); 735 674 736 675 #ifdef CR_FORCE_ZVA_SERVER_ARRAY … … 809 748 { 810 749 crStateEnable(cap); 811 812 if (pack_spu.swap) 813 crPackEnableSWAP(cap); 814 else 815 crPackEnable(cap); 750 crPackEnable(cap); 816 751 } 817 752 else … … 834 769 { 835 770 crStateDisable(cap); 836 837 if (pack_spu.swap) 838 crPackDisableSWAP(cap); 839 else 840 crPackDisable(cap); 771 crPackDisable(cap); 841 772 } 842 773 else
Note:
See TracChangeset
for help on using the changeset viewer.