radv: no need to do gs_alloc_req for newer chips in ngg vs/tes
Copy from radeonsi. Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17130>
This commit is contained in:
@@ -6524,8 +6524,11 @@ radv_pipeline_emit_vgt_shader_config(struct radeon_cmdbuf *ctx_cs,
|
||||
stages |= S_028B54_PRIMGEN_EN(1);
|
||||
if (pipeline->streamout_shader)
|
||||
stages |= S_028B54_NGG_WAVE_ID_EN(1);
|
||||
if (radv_pipeline_has_ngg_passthrough(pipeline))
|
||||
if (radv_pipeline_has_ngg_passthrough(pipeline)) {
|
||||
stages |= S_028B54_PRIMGEN_PASSTHRU_EN(1);
|
||||
if (pdevice->rad_info.family >= CHIP_NAVI23)
|
||||
stages |= S_028B54_PRIMGEN_PASSTHRU_NO_MSG(1);
|
||||
}
|
||||
} else if (radv_pipeline_has_stage(pipeline, MESA_SHADER_GEOMETRY)) {
|
||||
stages |= S_028B54_VS_EN(V_028B54_VS_STAGE_COPY_SHADER);
|
||||
}
|
||||
|
Reference in New Issue
Block a user