summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--native/driver/etna_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/driver/etna_resource.c b/native/driver/etna_resource.c
index f47969d..6d52a92 100644
--- a/native/driver/etna_resource.c
+++ b/native/driver/etna_resource.c
@@ -67,12 +67,12 @@ bool etna_screen_resource_alloc_ts(struct pipe_screen *screen, struct etna_resou
resource->ts = rt_ts;
resource->levels[0].ts_address = resource->ts->address;
resource->levels[0].ts_size = resource->ts->size;
- /* It is important to initialize the TS to zero, as random pattern
+ /* It is important to initialize the TS, as random pattern
* can result in crashes. Do this on the CPU as this only happens once
* per surface anyway and it's a small area, so it may not be worth
* queuing this to the GPU.
*/
- memset(rt_ts->logical, 0, rt_ts_size);
+ memset(rt_ts->logical, priv->specs.ts_clear_value, rt_ts_size);
return true;
}