summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_resource.h
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2016-11-21 12:25:29 +0100
committerLucas Stach <[email protected]>2017-04-11 16:52:01 +0200
commit37622ecc795e655ab0264c44dbe6188d9d9d3813 (patch)
tree485a884920edb1e284d33ab25bf691b939562cb0 /src/gallium/drivers/etnaviv/etnaviv_resource.h
parent768f81b62ba0901b766494af7a29ba9deee83338 (diff)
etnaviv: avoid using invalid TS
The TS is only valid after it has been initialized by a fast clear, so it should not be taken into account when blitting resources that haven't been cleared. Also the blit itself invalidates the destination TS, as it's not updated and will retain data from the previous rendering after the blit. Signed-off-by: Lucas Stach <[email protected]> Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_resource.h')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_resource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.h b/src/gallium/drivers/etnaviv/etnaviv_resource.h
index a9b288e708b..a6c6a78269e 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_resource.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_resource.h
@@ -46,6 +46,7 @@ struct etna_resource_level {
uint32_t ts_layer_stride;
uint32_t ts_size;
uint32_t clear_value; /* clear value of resource level (mainly for TS) */
+ bool ts_valid;
};
/* status of queued up but not flushed reads and write operations.