VirtualBox

Changeset 73223 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Jul 18, 2018 8:07:50 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123828
Message:

3D: texture unpacking reworked, bugref:9192. Merged r123597, r123598, r123600, r123601, r123755.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:mergeinfo
      •  

        old new  
        88/branches/VBox-5.0:104445,104938,104943,104950,104952-104953,104987-104988,104990,106453
        99/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
        1111/branches/andy/draganddrop:90781-91268
        1212/branches/andy/guestctrl20:78916,78930
  • trunk/src/VBox

    • Property svn:mergeinfo
      •  

        old new  
        88/branches/VBox-5.0/src/VBox:104938,104943,104950,104987-104988,104990,106453
        99/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
        1111/branches/andy/draganddrop/src/VBox:90781-91268
        1212/branches/andy/guestctrl20/src/VBox:78916,78930
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h

    r71469 r73223  
    7070
    7171#define DATA_POINTER_CHECK( offset ) \
    72     ( (cr_unpackDataEnd ? cr_unpackData + (offset) < cr_unpackDataEnd : true) )
     72    ( (offset) >= 0 && (cr_unpackDataEnd >= cr_unpackData) && (size_t)(cr_unpackDataEnd - cr_unpackData) > (size_t)(offset) )
    7373
    7474#define INCR_DATA_PTR( delta ) \
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_teximage.c

    r69392 r73223  
    740740    CRStateBits *sb = GetCurrentBits();
    741741    CRTextureBits *tb = &(sb->texture);
    742     const int is_distrib = ((type == GL_TRUE) || (type == GL_FALSE));
     742    // Distributed textures are not used by VBox
     743    const int is_distrib = 0; // ((type == GL_TRUE) || (type == GL_FALSE));
    743744
    744745    FLUSH();
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r69989 r73223  
    10791079
    10801080#ifndef IN_GUEST
     1081    /* Expect only CR_MESSAGE_OPCODES from the guest. */
     1082    AssertPtrReturnVoid(conn->pBuffer);
     1083
     1084    if (   conn->cbBuffer >= sizeof(CRMessageHeader)
     1085        && ((CRMessageHeader*) (conn->pBuffer))->type == CR_MESSAGE_OPCODES)
     1086    {
     1087        /* Looks good. */
     1088    }
     1089    else
     1090    {
     1091        AssertFailed();
     1092        /** @todo Find out if this is the expected cleanup. */
     1093        conn->cbBuffer = 0;
     1094        conn->pBuffer  = NULL;
     1095        return;
     1096    }
     1097#endif
     1098
     1099#ifndef IN_GUEST
    10811100    if (conn->allow_redir_ptr)
    10821101    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette