diff options
author | Wladimir J. van der Laan <[email protected]> | 2017-11-01 11:17:53 +0100 |
---|---|---|
committer | Lucas Stach <[email protected]> | 2017-11-02 10:58:48 +0100 |
commit | 8fbd82f464f26a56167f7962174b2b69756a105a (patch) | |
tree | f5bc646ce5e3cd7b33564b35005e2a4172a81c99 /src/gallium/drivers/etnaviv/etnaviv_emit.c | |
parent | c39f39106d5578598f37bea235b4b0504ee6764e (diff) |
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: [email protected]
Signed-off-by: Wladimir J. van der Laan <[email protected]>
Tested-by: Chris Healy <[email protected]>
Signed-off-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_emit.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_emit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_emit.c b/src/gallium/drivers/etnaviv/etnaviv_emit.c index 707b1e73491..5397aa33ce3 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_emit.c +++ b/src/gallium/drivers/etnaviv/etnaviv_emit.c @@ -171,6 +171,10 @@ etna_submit_rs_state(struct etna_context *ctx, struct etna_cmd_stream *stream = ctx->stream; struct etna_coalesce coalesce; + if (cs->RS_KICKER_INPLACE && !cs->source_ts_valid) + /* Inplace resolve is no-op if TS is not configured */ + return; + ctx->stats.rs_operations++; if (cs->RS_KICKER_INPLACE) { |