radv/gfx10: emit ES outputs of TES when it's not NGG
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 12 Jul 2019 16:12:31 +0000 (18:12 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 16 Jul 2019 09:16:51 +0000 (11:16 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_nir_to_llvm.c

index aa50b91d8c05453862b2b2b4067825274b89c27a..b890ce56f168b92d948ee924256368fcdbe60c26 100644 (file)
@@ -4085,10 +4085,10 @@ handle_shader_outputs_post(struct ac_shader_abi *abi, unsigned max_outputs,
                handle_tcs_outputs_post(ctx);
                break;
        case MESA_SHADER_TESS_EVAL:
-               if (ctx->options->key.vs_common_out.as_ngg)
-                       break; /* handled outside of the shader body */
-               else if (ctx->options->key.vs_common_out.as_es)
+               if (ctx->options->key.vs_common_out.as_es)
                        handle_es_outputs_post(ctx, &ctx->shader_info->tes.es_info);
+               else if (ctx->options->key.vs_common_out.as_ngg)
+                       break; /* handled outside of the shader body */
                else
                        handle_vs_outputs_post(ctx, ctx->options->key.vs_common_out.export_prim_id,
                                               ctx->options->key.vs_common_out.export_clip_dists,