diff options
author | Marek Olšák <[email protected]> | 2020-03-20 17:32:11 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-28 00:58:34 +0000 |
commit | 3381f2fa06be807c910ddb41aa239606419841d8 (patch) | |
tree | cd0186c6a4192138574be8c9a8e4b5a1040fdd41 /src/gallium | |
parent | d89b19cfe1bd8bd6f259b6a4d2070e8d08f3b67e (diff) |
radeonsi: fix incorrect ordered_wave_id initilization for compute-based culling
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4269>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute_prim_discard.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c index fcb6944b5ae..3843b395946 100644 --- a/src/gallium/drivers/radeonsi/si_compute_prim_discard.c +++ b/src/gallium/drivers/radeonsi/si_compute_prim_discard.c @@ -485,10 +485,11 @@ void si_build_prim_discard_compute_shader(struct si_shader_context *ctx) } } - LLVMValueRef ordered_wave_id = ac_get_arg(&ctx->ac, param_ordered_wave_id); + LLVMValueRef ordered_wave_id = NULL; /* Extract the ordered wave ID. */ if (VERTEX_COUNTER_GDS_MODE == 2) { + ordered_wave_id = ac_get_arg(&ctx->ac, param_ordered_wave_id); ordered_wave_id = LLVMBuildLShr(builder, ordered_wave_id, LLVMConstInt(ctx->ac.i32, 6, 0), ""); ordered_wave_id = LLVMBuildAnd(builder, ordered_wave_id, |