Skip to content
  • Thomas Hellstrom's avatar
    dri3/GLX: Fix drawable invalidation v2 · 67acca07
    Thomas Hellstrom authored and Emil Velikov's avatar Emil Velikov committed
    
    
    A number of internal VMware apitrace traces image comparisons fail with
    dri3 because the viewport transformation becomes incorrect after an X
    drawable resize. The incorrect viewport transformation sometimes persist
    until the second draw-call after a swapBuffer.
    
    Comparing with the dri2 glx code there are a couple of places where dri2
    invalidates the drawable in the absence of server-triggered invalidation,
    where dri3 doesn't do that. When these invalidation points are added to
    dri3, the image comparisons become correct.
    
    v2:
    Addressed review comment by Michel Dänzer.
    
    Cc: <mesa-stable@lists.freedesktop.org>
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-and-tested-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
    (cherry picked from commit 1253d589)
    67acca07