diff options
author | Samuel Pitoiset <[email protected]> | 2019-12-17 10:01:50 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-12-17 12:34:18 +0000 |
commit | d399f4f4144c2cde5d096630a627dc160270cc62 (patch) | |
tree | 7d4607959558d44f88dce1406855499d01d58498 | |
parent | 089c8f0b8da86a05bde8359c84085e0b795abf17 (diff) |
radv/gfx10: fix ngg_get_ordered_id
Ported from RadeonSI.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3133>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3133>
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 2 | ||||
-rw-r--r-- | src/amd/vulkan/radv_shader_args.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 9637271b1b6..581513e3859 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -2285,7 +2285,7 @@ static LLVMValueRef ngg_get_ordered_id(struct radv_shader_context *ctx) { return ac_build_bfe(&ctx->ac, ac_get_arg(&ctx->ac, ctx->args->gs_tg_info), ctx->ac.i32_0, - LLVMConstInt(ctx->ac.i32, 11, false), + LLVMConstInt(ctx->ac.i32, 12, false), false); } diff --git a/src/amd/vulkan/radv_shader_args.h b/src/amd/vulkan/radv_shader_args.h index 0f57058bd6e..3c7aceb6385 100644 --- a/src/amd/vulkan/radv_shader_args.h +++ b/src/amd/vulkan/radv_shader_args.h @@ -50,7 +50,7 @@ struct radv_shader_args { /* HW GS */ /* On gfx10: - * - bits 0..10: ordered_wave_id + * - bits 0..11: ordered_wave_id * - bits 12..20: number of vertices in group * - bits 22..30: number of primitives in group */ |