VirtualBox

Changeset 82722 in vbox


Ignore:
Timestamp:
Jan 12, 2020 9:02:01 PM (5 years ago)
Author:
vboxsync
Message:

3D: Corrected r135648 to fix blank guest screen, bugref:9613

Location:
trunk/src/VBox/Devices/Graphics/shaderlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/shaderlib/shader_sm1.c

    r82718 r82722  
    214214    struct wined3d_shader_version shader_version;
    215215    const DWORD *end;
     216    DWORD tokens_num;
    216217    const struct wined3d_sm1_opcode_info *opcode_table;
    217218};
     
    539540    }
    540541   
    541     priv->end = byte_code + tokens_num;
     542    priv->end = NULL;
     543    priv->tokens_num = tokens_num;
    542544
    543545    if (output_signature)
     
    576578    struct wined3d_sm1_data *priv = data;
    577579    DWORD version_token;
     580
     581    priv->end = *ptr + priv->tokens_num;
    578582
    579583    version_token = *(*ptr)++;
     
    679683    struct wined3d_sm1_data *priv = data;
    680684
    681     if (*ptr >= priv->end)
    682     {
    683         return TRUE;
    684     }
    685 
    686685    if (**ptr == WINED3DSP_END)
    687686    {
     
    689688        return TRUE;
    690689    }
     690
     691    AssertMsgReturn(*ptr < priv->end, ("End-of-bytecode token is missing"), TRUE);
    691692
    692693    return FALSE;
  • trunk/src/VBox/Devices/Graphics/shaderlib/shader_sm4.c

    r82718 r82722  
    101101    struct wined3d_shader_version shader_version;
    102102    const DWORD *end;
     103    DWORD tokens_num;
    103104    const struct wined3d_shader_signature *output_signature;
    104105};
     
    238239    }
    239240
    240     priv->end = byte_code + tokens_num;
     241    priv->end = NULL;
     242    priv->tokens_num = tokens_num;
    241243    priv->output_signature = output_signature;
    242244
Note: See TracChangeset for help on using the changeset viewer.

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