diff options
author | Jonathan Marek <[email protected]> | 2019-07-01 16:20:58 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-07-04 14:05:18 -0400 |
commit | 7c7eaaed4a8deb6bb1b0ee34b78b0228630738be (patch) | |
tree | 9ea04ce45c7bc00ab50dbda4ea1f55eeb05c1208 | |
parent | 95d937852e63c1bd9ce35315df781d21182db7d7 (diff) |
etnaviv: remove initial CPU ts clear
Since we have "ts_valid" to avoid using uncleared ts, this memset serves
no purpose. Also it is broken because it doesn't use cpu_prep/cpu_fini.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_resource.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index 3cf45b6c803..996232c94cd 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -122,13 +122,6 @@ etna_screen_resource_alloc_ts(struct pipe_screen *pscreen, rsc->levels[0].ts_size = rt_ts_size; rsc->levels[0].ts_mode = ts_mode; - /* 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. */ - void *ts_map = etna_bo_map(rt_ts); - memset(ts_map, screen->specs.ts_clear_value, rt_ts_size); - return true; } |