From: Samuel Pitoiset Date: Tue, 17 Dec 2019 09:01:50 +0000 (+0100) Subject: radv/gfx10: fix ngg_get_ordered_id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d399f4f4144c2cde5d096630a627dc160270cc62;p=mesa.git 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: --- 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 */