Mesa (master): radv/gfx10: improve performance for TES using PrimID but not exporting it
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jan 13 08:48:05 UTC 2020
Module: Mesa
Branch: master
Commit: ecace268535993bce954ee4e7516f9bbc60acc46
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ecace268535993bce954ee4e7516f9bbc60acc46
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Wed Jan 8 08:55:16 2020 +0100
radv/gfx10: improve performance for TES using PrimID but not exporting it
This field is for the primitive ID export to the fragment shader.
Ported from RadeonSI.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/amd/vulkan/radv_pipeline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index dcc9518bfe9..eaedc023873 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3991,7 +3991,7 @@ radv_pipeline_generate_hw_ngg(struct radeon_cmdbuf *ctx_cs,
radeon_set_context_reg(ctx_cs, R_028A84_VGT_PRIMITIVEID_EN,
S_028A84_PRIMITIVEID_EN(es_enable_prim_id) |
- S_028A84_NGG_DISABLE_PROVOK_REUSE(es_enable_prim_id));
+ S_028A84_NGG_DISABLE_PROVOK_REUSE(outinfo->export_prim_id));
radeon_set_context_reg(ctx_cs, R_028AAC_VGT_ESGS_RING_ITEMSIZE,
ngg_state->vgt_esgs_ring_itemsize);
More information about the mesa-commit
mailing list