Module: Mesa
Branch: master
Commit: 42ce52b904323b1a165cfbc568f708ce7f39fe45
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=42ce52b904323b1a165cfbc568f708ce7f39fe45

Author: Marek Olšák <[email protected]>
Date:   Fri Mar 20 18:02:20 2020 -0400

radeonsi: set amdgpu-gds-size for mode == 2 of compute-based culling

Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>

---

 src/gallium/drivers/radeonsi/si_compute_prim_discard.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c 
b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c
index 3843b395946..ec95ec1214f 100644
--- a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c
+++ b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c
@@ -366,7 +366,10 @@ void si_build_prim_discard_compute_shader(struct 
si_shader_context *ctx)
        si_llvm_create_func(ctx, "prim_discard_cs", NULL, 0, THREADGROUP_SIZE);
        ctx->type = old_type;
 
-       if (VERTEX_COUNTER_GDS_MODE == 1) {
+       if (VERTEX_COUNTER_GDS_MODE == 2) {
+               ac_llvm_add_target_dep_function_attr(ctx->main_fn,
+                                                    "amdgpu-gds-size", 256);
+       } else if (VERTEX_COUNTER_GDS_MODE == 1) {
                ac_llvm_add_target_dep_function_attr(ctx->main_fn, 
"amdgpu-gds-size",
                                                     GDS_SIZE_UNORDERED);
        }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to