projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ce52b
)
radeonsi: always create wait_mem_scratch for compute-based culling
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 20 Mar 2020 22:20:52 +0000
(18:20 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Sat, 28 Mar 2020 00:58:34 +0000
(
00:58
+0000)
used by the primitive restart emulation
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>
src/gallium/drivers/radeonsi/si_pipe.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_pipe.c
b/src/gallium/drivers/radeonsi/si_pipe.c
index 90e05a590f36454875eb6cae94cdbef66a8b82d8..d900467964b3452a4b94a3eac3bc7e27e2ef8248 100644
(file)
--- 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)