mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
panvk: Set fs.multisampled sysval for v10+
This allows us to observe writes to SampleMask, which would otherwise be ignored. Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32132>
This commit is contained in:
parent
9b7f547fef
commit
4ab14de32f
1 changed files with 6 additions and 0 deletions
|
|
@ -225,6 +225,12 @@ prepare_sysvals(struct panvk_cmd_buffer *cmdbuf)
|
|||
const struct vk_rasterization_state *rs =
|
||||
&cmdbuf->vk.dynamic_graphics_state.rs;
|
||||
|
||||
struct pan_fb_info *fbinfo = &cmdbuf->state.gfx.render.fb.info;
|
||||
if (sysvals->fs.multisampled != (fbinfo->nr_samples > 1)) {
|
||||
sysvals->fs.multisampled = fbinfo->nr_samples > 1;
|
||||
cmdbuf->state.gfx.push_uniforms = 0;
|
||||
}
|
||||
|
||||
if (is_dirty(cmdbuf, CB_BLEND_CONSTANTS)) {
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(cb->blend_constants); i++)
|
||||
sysvals->blend.constants[i] =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue