radeonsi/gfx10: fix ngg_get_ordered_id
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>
This commit is contained in:
parent
8edf3df3e4
commit
43f05e0421
|
@ -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)
|
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)
|
static LLVMValueRef ngg_get_query_buf(struct si_shader_context *ctx)
|
||||||
|
|
|
@ -181,7 +181,7 @@ struct si_shader_context {
|
||||||
struct ac_arg es2gs_offset;
|
struct ac_arg es2gs_offset;
|
||||||
/* HW GS */
|
/* HW GS */
|
||||||
/* On gfx10:
|
/* On gfx10:
|
||||||
* - bits 0..10: ordered_wave_id
|
* - bits 0..11: ordered_wave_id
|
||||||
* - bits 12..20: number of vertices in group
|
* - bits 12..20: number of vertices in group
|
||||||
* - bits 22..30: number of primitives in group
|
* - bits 22..30: number of primitives in group
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue