From: Marek Olšák Date: Wed, 29 May 2019 20:32:17 +0000 (-0400) Subject: radeonsi/gfx10: fix NGG GS color clamping X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e39d4594dac9d69934aa68a66ca7fc577f5fa955;p=mesa.git 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 --- 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)