mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
tu: Do not emit zero-sized fs params
The comparison change accidentally slipped in.
Fixes a crash in:
dEQP-VK.subgroups.size_control.framebuffer.fragment_allow_varying_subgroup_size
Fixes: 76e417ca59
("turnip,ir3/a750: Implement consts loading via preamble")
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27829>
This commit is contained in:
parent
b3064f9cf4
commit
55e99728e0
1 changed files with 1 additions and 1 deletions
|
|
@ -4701,7 +4701,7 @@ fs_params_offset(struct tu_cmd_buffer *cmd)
|
|||
&cmd->state.program.link[MESA_SHADER_FRAGMENT];
|
||||
const struct ir3_const_state *const_state = &link->const_state;
|
||||
|
||||
if (const_state->num_driver_params < IR3_DP_FS_DYNAMIC)
|
||||
if (const_state->num_driver_params <= IR3_DP_FS_DYNAMIC)
|
||||
return 0;
|
||||
|
||||
if (const_state->offsets.driver_param + IR3_DP_FS_DYNAMIC / 4 >= link->constlen)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue