Module: Mesa
Branch: master
Commit: a7b7e940856c406ab4bdb3b94c7598d8db031451
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7b7e940856c406ab4bdb3b94c7598d8db031451

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Jul 11 21:35:46 2019 +0200

radv: only enable the GS copy shader stage if GS is enabled

Ooops.

Signed-off-by: Samuel Pitoiset <[email protected]>

---

 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 5c97aae39a8..9b68650fd36 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3884,7 +3884,7 @@ radv_compute_vgt_shader_stages_en(const struct 
radv_pipeline *pipeline)
 
        if (radv_pipeline_has_ngg(pipeline)) {
                stages |= S_028B54_PRIMGEN_EN(1);
-       } else {
+       } else if (radv_pipeline_has_gs(pipeline)) {
                stages |= S_028B54_VS_EN(V_028B54_VS_STAGE_COPY_SHADER);
        }
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to