st/nine: Return error when setting invalid depth buffer
authorAxel Davy <davyaxel0@gmail.com>
Tue, 28 May 2019 20:47:44 +0000 (22:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 May 2020 15:43:57 +0000 (15:43 +0000)
commit2c61b4db7d6f9ce2638bdd35c8dcac70ea950e4e
tree88c02010ec4b857014f28a89968cb798af65a73b
parentc0f21cbaa124fa32509a8d9c14120fc22f0c8c63
st/nine: Return error when setting invalid depth buffer

Prevents a crash with the trace of
https://github.com/iXit/wine-nine-standalone/issues/40

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5015>
src/gallium/frontends/nine/device9.c