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:
committed by
Marge Bot
parent
9b7f547fef
commit
4ab14de32f
@@ -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] =
|
||||
|
||||
Reference in New Issue
Block a user