panvk: Do not clamp blend constants in command buffer

This is wrong for SNORM and this is handled by nir_lower_blend.

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37271>
This commit is contained in:
Mary Guillemard 2025-09-10 08:57:16 +00:00 committed by Marge Bot
parent 1646e7d311
commit f707f093ec

View file

@ -737,7 +737,7 @@ panvk_per_arch(cmd_prepare_draw_sysvals)(struct panvk_cmd_buffer *cmdbuf,
if (dyn_gfx_state_dirty(cmdbuf, CB_BLEND_CONSTANTS)) {
for (unsigned i = 0; i < ARRAY_SIZE(cb->blend_constants); i++) {
set_gfx_sysval(cmdbuf, dirty_sysvals, blend.constants[i],
CLAMP(cb->blend_constants[i], 0.0f, 1.0f));
cb->blend_constants[i]);
}
}