etnaviv: don't do resolve-in-place without valid TS
authorWladimir J. van der Laan <laanwj@gmail.com>
Wed, 1 Nov 2017 10:17:53 +0000 (11:17 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 2 Nov 2017 09:58:48 +0000 (10:58 +0100)
commit8fbd82f464f26a56167f7962174b2b69756a105a
treef5bc646ce5e3cd7b33564b35005e2a4172a81c99
parentc39f39106d5578598f37bea235b4b0504ee6764e
etnaviv: don't do resolve-in-place without valid TS

GC3000 resolve-in-place assumes that the TS state is configured.
If it is not, this will result in MMU errors. This is especially
apparent when using glGenMipmaps().

Fixes: 78ade659569e ("etnaviv: Do GC3000 resolve-in-place when possible")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
src/gallium/drivers/etnaviv/etnaviv_emit.c
src/gallium/drivers/etnaviv/etnaviv_rs.c
src/gallium/drivers/etnaviv/etnaviv_rs.h