From e39d4594dac9d69934aa68a66ca7fc577f5fa955 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 29 May 2019 16:32:17 -0400 Subject: [PATCH] radeonsi/gfx10: fix NGG GS color clamping Just need to pass the input from ES to GS. Everything else is done. Acked-by: Bas Nieuwenhuizen --- src/gallium/drivers/radeonsi/si_shader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 7bc22fcfa4f..032b5a7bd8b 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -3446,6 +3446,10 @@ static void si_set_es_return_value_for_gs(struct si_shader_context *ctx) ret = si_insert_input_ptr(ctx, ret, ctx->param_bindless_samplers_and_images, 8 + SI_SGPR_BINDLESS_SAMPLERS_AND_IMAGES); + if (ctx->screen->info.chip_class >= GFX10) { + ret = si_insert_input_ptr(ctx, ret, ctx->param_vs_state_bits, + 8 + SI_SGPR_VS_STATE_BITS); + } unsigned vgpr; if (ctx->type == PIPE_SHADER_VERTEX) -- 2.30.2