Skip to content
  • Charmaine Lee's avatar
    svga: fix incompatible bind flags at buffer validation time · 33a86acd
    Charmaine Lee authored
    
    
    At buffer resource validation time, if the resource handle is not yet
    created and if the initial buffer bind flags and the tobind flags are
    incompatible, just use the tobind flags to create the resource handle.
    On the other hand, if the bind flags are compatible, we can combine
    the bind flags for the resource handle creation.
    
    Fixes piglit gl-3.1-buffer-bindings crash.
    
    Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
    33a86acd