summaryrefslogtreecommitdiff
path: root/src/hgl
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2021-02-17 15:55:26 -0500
committerMarge Bot <eric+marge@anholt.net>2021-02-23 18:57:57 +0000
commit292d45497ff918037a1e12773b99b0e04c6bd9ff (patch)
treea564910daf5c247d833973383df74c73c0264302 /src/hgl
parent6635a470381b79240d0d2a423a099ee4b9ff7bf2 (diff)
gallium/xlib: Partial fix for glXCopySubBufferMESA
xmesa_copy_st_framebuffer would attempt to flush from the front buffer to the display, but we don't actually have an attachment for the front buffer (just the back) so nothing would happen. Fix this by flushing fron the back to the display, threading the dirty box through so we don't update more than we were told to. This has the virtue of displaying correctly, but glx-copy-sub-buffer still fails since there is no real front buffer, reads from GL_FRONT actually read from the back buffer. The test does: clear to red, swap, clear to green, copy sub-buffer, expect a green square inside of a red one from the front buffer. Since you're really reading from the back you instead get solid green. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9140>
Diffstat (limited to 'src/hgl')
0 files changed, 0 insertions, 0 deletions