mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-21 03:10:35 +01:00
radv: do not remove PSIZ for VS when the topology is unknown
When compiling only the pre-rast stages in a library, the input assembly state might not be present and the topology would be 0. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18519>
This commit is contained in:
parent
7f91555d4c
commit
f5ba4e855e
1 changed files with 5 additions and 0 deletions
|
|
@ -2170,6 +2170,11 @@ radv_remove_point_size(const struct radv_pipeline_key *pipeline_key,
|
|||
if (producer->xfb_info)
|
||||
return;
|
||||
|
||||
/* Do not remove PSIZ for vertex shaders when the topology is unknown. */
|
||||
if (producer->info.stage == MESA_SHADER_VERTEX &&
|
||||
pipeline_key->vs.topology == V_008958_DI_PT_NONE)
|
||||
return;
|
||||
|
||||
/* Do not remove PSIZ if the rasterization primitive uses points. */
|
||||
if (consumer->info.stage == MESA_SHADER_FRAGMENT &&
|
||||
((producer->info.stage == MESA_SHADER_VERTEX &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue