From d399f4f4144c2cde5d096630a627dc160270cc62 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 17 Dec 2019 10:01:50 +0100 Subject: [PATCH] radv/gfx10: fix ngg_get_ordered_id Ported from RadeonSI. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Tested-by: Marge Bot Part-of: --- src/amd/vulkan/radv_nir_to_llvm.c | 2 +- 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 */ -- 2.30.2