mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
radv: force GS stage for VS as ES compiled separately on GFX9+
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27388>
This commit is contained in:
parent
8ef4c049ec
commit
416b20d381
2 changed files with 6 additions and 0 deletions
|
|
@ -1589,6 +1589,9 @@ radv_postprocess_binary_config(struct radv_device *device, struct radv_shader_bi
|
|||
/* Update the stage for merged shaders compiled separately with ESO on GFX9+. */
|
||||
if (stage == MESA_SHADER_VERTEX && info->vs.as_ls) {
|
||||
stage = MESA_SHADER_TESS_CTRL;
|
||||
} else if (stage == MESA_SHADER_VERTEX && info->vs.as_es) {
|
||||
es_stage = MESA_SHADER_VERTEX;
|
||||
stage = MESA_SHADER_GEOMETRY;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -527,6 +527,9 @@ declare_shader_args(const struct radv_device *device, const struct radv_graphics
|
|||
if (stage == MESA_SHADER_VERTEX && info->vs.as_ls) {
|
||||
previous_stage = MESA_SHADER_VERTEX;
|
||||
stage = MESA_SHADER_TESS_CTRL;
|
||||
} else if (stage == MESA_SHADER_VERTEX && info->vs.as_es) {
|
||||
previous_stage = MESA_SHADER_VERTEX;
|
||||
stage = MESA_SHADER_GEOMETRY;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue