diff options
author | Marek Olšák <[email protected]> | 2020-03-20 18:20:52 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-28 00:58:34 +0000 |
commit | be9455bdf767dd851c56075e6dd84b27e95dcfc2 (patch) | |
tree | 55d4c4c45bdd99cbc01ae6550fefae35b647051a /src/gallium/drivers/radeonsi | |
parent | 42ce52b904323b1a165cfbc568f708ce7f39fe45 (diff) |
radeonsi: always create wait_mem_scratch for compute-based culling
used by the primitive restart emulation
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 90e05a590f3..d900467964b 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -622,7 +622,8 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, sctx->b.create_video_buffer = vl_video_buffer_create; } - if (sctx->chip_class >= GFX9) { + if (sctx->chip_class >= GFX9 || + si_compute_prim_discard_enabled(sctx)) { sctx->wait_mem_scratch = si_resource( pipe_buffer_create(screen, 0, PIPE_USAGE_DEFAULT, 8)); if (!sctx->wait_mem_scratch) |