mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 03:28:09 +02:00
radv: Only emit TES when it exists.
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
6e21b7a294
commit
f82797b56d
1 changed files with 6 additions and 4 deletions
|
|
@ -768,10 +768,12 @@ radv_emit_tess_shaders(struct radv_cmd_buffer *cmd_buffer,
|
|||
tcs = pipeline->shaders[MESA_SHADER_TESS_CTRL];
|
||||
tes = pipeline->shaders[MESA_SHADER_TESS_EVAL];
|
||||
|
||||
if (tes->info.tes.as_es)
|
||||
radv_emit_hw_es(cmd_buffer, tes, &tes->info.tes.es_info);
|
||||
else
|
||||
radv_emit_hw_vs(cmd_buffer, pipeline, tes, &tes->info.tes.outinfo);
|
||||
if (tes) {
|
||||
if (tes->info.tes.as_es)
|
||||
radv_emit_hw_es(cmd_buffer, tes, &tes->info.tes.es_info);
|
||||
else
|
||||
radv_emit_hw_vs(cmd_buffer, pipeline, tes, &tes->info.tes.outinfo);
|
||||
}
|
||||
|
||||
radv_emit_hw_hs(cmd_buffer, tcs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue