diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-09-18 21:27:47 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-09-19 05:33:00 +0200 |
commit | a4dae6e23d1b035e1f6acf8429c9ac779ce6f399 (patch) | |
tree | be4325789f5359e57047e5aa4fb4d0604038ad12 | |
parent | f660d9dfae96a9abc3b4d9a4ec3b2ea091205459 (diff) |
driver: use TS clear value for initial TS fill
-rw-r--r-- | native/driver/etna_resource.c | 4 |
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; } |