Module: Mesa Branch: main Commit: 22796d91eaa3646e1caa0f42eda91dfe729c455f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=22796d91eaa3646e1caa0f42eda91dfe729c455f
Author: Timur Kristóf <[email protected]> Date: Sun Jul 17 21:34:43 2022 +0200 aco: Remove hack for primitive ID export. Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Qiang Yu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17581> --- src/amd/compiler/aco_instruction_selection.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index e18f7372d9f..1b557b436a2 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -5242,16 +5242,6 @@ visit_store_output(isel_context* ctx, nir_intrinsic_instr* instr) } else { unreachable("Shader stage not implemented"); } - - /* For NGG VS and TES shaders (without GS) the primitive ID is exported - * manually after the other exports so we have to emit an exp here manually - */ - if (ctx->stage.hw == HWStage::NGG && - (ctx->stage.has(SWStage::VS) || ctx->stage.has(SWStage::TES)) && - !ctx->stage.has(SWStage::GS) && - nir_intrinsic_io_semantics(instr).location == VARYING_SLOT_PRIMITIVE_ID) { - export_vs_varying(ctx, VARYING_SLOT_PRIMITIVE_ID, false, NULL); - } } void
