diff options
author | Marek Olšák <[email protected]> | 2019-05-29 16:32:17 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-03 15:51:13 -0400 |
commit | e39d4594dac9d69934aa68a66ca7fc577f5fa955 (patch) | |
tree | 4a23e8fafa26e994ec43d4fc76ccbece26ea3005 /src/gallium/drivers/radeonsi/si_shader.c | |
parent | 40e7c65590b9179b7d3fc4267fe667e8abc0919c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |