radeonsi/gfx10: fix NGG GS color clamping
authorMarek Olšák <marek.olsak@amd.com>
Wed, 29 May 2019 20:32:17 +0000 (16:32 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 19:51:13 +0000 (15:51 -0400)
Just need to pass the input from ES to GS. Everything else is done.

Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_shader.c

index 7bc22fcfa4f717f1ec60b5ed7eaec8b208366004..032b5a7bd8b29253205a75c491c2c1511aba25b1 100644 (file)
@@ -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)