commit | c5c1aa7c75c05927017325829cb3f354654d0b73 | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Tue Nov 10 16:51:36 2020 -0800 |
committer | Eric Anholt <eric@anholt.net> | Fri Dec 04 15:59:59 2020 -0800 |
tree | db3b874d10dcbca2eedc72322f232272b52d599c | |
parent | 0223552fa0ac5d2116f8bfdda40b0193176682c9 [diff] |
gallium/osmesa: Fix flushing and Y-flipping of the depth buffer. We were returning a pointer to use-after-free the depth buffer, not updating it in after future rendering, and also not y flipping it. A little refactor to mostly reuse the color buffer's path makes it easy to do it all right. Adds a unit test to check for these bugs. Closes: #885 Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7886>