mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
panvk/jm: Drop the loads_blend_const hack for uniform_count
We already mark all fragment shaders as always using blend constants so this is handled by the existing code and our setting of push.count. Also, this hack is wrong as it pushes way too much and might overflow memory. Also, it will overflow the HW limit of 64 as soon as we increase the size of panvk_graphics_sysvals. Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39274>
This commit is contained in:
parent
871875d0ce
commit
f66b48d790
1 changed files with 0 additions and 9 deletions
|
|
@ -289,15 +289,6 @@ panvk_draw_prepare_fs_rsd(struct panvk_cmd_buffer *cmdbuf,
|
|||
if (fs) {
|
||||
pan_shader_prepare_rsd(fs_info, fs_code, &cfg);
|
||||
|
||||
if (binfo->shader_loads_blend_const) {
|
||||
/* Preload the blend constant if the blend shader depends on it. */
|
||||
cfg.preload.uniform_count =
|
||||
MAX2(cfg.preload.uniform_count,
|
||||
DIV_ROUND_UP(SYSVALS_PUSH_CONST_BASE +
|
||||
sizeof(struct panvk_graphics_sysvals),
|
||||
8));
|
||||
}
|
||||
|
||||
uint8_t rt_mask = cmdbuf->state.gfx.render.bound_attachments &
|
||||
MESA_VK_RP_ATTACHMENT_ANY_COLOR_BITS;
|
||||
uint8_t rt_written = color_attachment_written_mask(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue