radv: Assert that there is no GS copy shader when the pipeline has NGG.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11092>
This commit is contained in:
Timur Kristóf
2021-05-31 17:46:19 +02:00
committed by Marge Bot
parent 7e664a5383
commit 18d48c01c2

View File

@@ -5070,8 +5070,10 @@ radv_pipeline_generate_vgt_shader_config(struct radeon_cmdbuf *ctx_cs,
else if (pipeline->shaders[MESA_SHADER_VERTEX]) else if (pipeline->shaders[MESA_SHADER_VERTEX])
vs_size = pipeline->shaders[MESA_SHADER_VERTEX]->info.wave_size; vs_size = pipeline->shaders[MESA_SHADER_VERTEX]->info.wave_size;
if (radv_pipeline_has_ngg(pipeline)) if (radv_pipeline_has_ngg(pipeline)) {
assert(!radv_pipeline_has_gs_copy_shader(pipeline));
gs_size = vs_size; gs_size = vs_size;
}
/* legacy GS only supports Wave64 */ /* legacy GS only supports Wave64 */
stages |= S_028B54_HS_W32_EN(hs_size == 32 ? 1 : 0) | stages |= S_028B54_HS_W32_EN(hs_size == 32 ? 1 : 0) |