mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
pvr: fix setup of load op unresolved msaa mask
Bits were being assigned rather than ORed into the mask during setup. Noticed
through code inspection.
Fixes: e089166776 ("pvr: Add support for VK_ATTACHMENT_LOAD_OP_LOAD.")
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25487>
This commit is contained in:
parent
ae277edc3a
commit
a44ec36684
1 changed files with 2 additions and 2 deletions
|
|
@ -254,7 +254,7 @@ pvr_create_subpass_load_op(struct pvr_device *device,
|
|||
pass->attachments[attachment_idx].vk_format;
|
||||
|
||||
if (pass->attachments[attachment_idx].sample_count > 1)
|
||||
load_op->clears_loads_state.unresolved_msaa_mask = BITFIELD_BIT(i);
|
||||
load_op->clears_loads_state.unresolved_msaa_mask |= BITFIELD_BIT(i);
|
||||
|
||||
if (hw_subpass->color_initops[i] == VK_ATTACHMENT_LOAD_OP_LOAD)
|
||||
load_op->clears_loads_state.rt_load_mask |= BITFIELD_BIT(i);
|
||||
|
|
@ -296,7 +296,7 @@ pvr_create_render_load_op(struct pvr_device *device,
|
|||
pass->attachments[color_init->index].vk_format;
|
||||
|
||||
if (pass->attachments[color_init->index].sample_count > 1)
|
||||
load_op->clears_loads_state.unresolved_msaa_mask = BITFIELD_BIT(i);
|
||||
load_op->clears_loads_state.unresolved_msaa_mask |= BITFIELD_BIT(i);
|
||||
|
||||
if (color_init->op == VK_ATTACHMENT_LOAD_OP_LOAD)
|
||||
load_op->clears_loads_state.rt_load_mask |= BITFIELD_BIT(i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue