This could have caused issues with NGG streamout. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3095>master
@@ -60,7 +60,7 @@ static LLVMValueRef ngg_get_prim_cnt(struct si_shader_context *ctx) | |||
static LLVMValueRef ngg_get_ordered_id(struct si_shader_context *ctx) | |||
{ | |||
return si_unpack_param(ctx, ctx->gs_tg_info, 0, 11); | |||
return si_unpack_param(ctx, ctx->gs_tg_info, 0, 12); | |||
} | |||
static LLVMValueRef ngg_get_query_buf(struct si_shader_context *ctx) |
@@ -181,7 +181,7 @@ struct si_shader_context { | |||
struct ac_arg es2gs_offset; | |||
/* 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 | |||
*/ |