nv50,nvc0: mark textures dirty on fb update
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 21 Jan 2019 03:19:26 +0000 (22:19 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 23 Jan 2019 04:16:01 +0000 (23:16 -0500)
commit8e26d534befe7cdd3bd21aa34f3ff63c1fa7baea
tree4144057f22b317dfd570a74d594d63b76eb31b37
parent678ef2a4a51dc184152d5ce5f1e3194164cc333a
nv50,nvc0: mark textures dirty on fb update

We may have to flush the cache if there are any textures presently bound
that refer to the outgoing framebuffer. This is only checked at
validation time.

Fixes a number of dEQP-GLES3.functional.fbo.color.repeated_clear.sample.*
tests, which would bind a texture, then clear it while the binding was
in effect, and then render to a different texture. This seems legal
under the "no feedback loops" rule.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nv50/nv50_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c