mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
radeonsi: set amdgpu-gds-size for mode == 2 of compute-based culling
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>
This commit is contained in:
parent
3381f2fa06
commit
42ce52b904
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue