radv: only enable the GS copy shader stage if GS is enabled
[mesa.git] / src / amd / vulkan / radv_pipeline.c
index 5c97aae39a853d4e14d5ec0d87dc7e63e59e34bf..9b68650fd36bab859edea100ccacb5d69962bf15 100644 (file)
@@ -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);
        }