mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 21:10:24 +01:00
panvk/csf: Set the correct DCD_FLAGS_1.render_rarget_mask
Outputs may be re-mapped by VK_KHR_dynamic_rendering_local_read, in which case outputs_written won't actually correspond to render targets. Fortunately, we already have rt_written, which is properly remapped. 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
4a2d3b9a81
commit
a4670a67e0
1 changed files with 1 additions and 6 deletions
|
|
@ -2105,12 +2105,7 @@ prepare_dcd(struct panvk_cmd_buffer *cmdbuf,
|
|||
struct mali_dcd_flags_1_packed dcd1;
|
||||
pan_pack(&dcd1, DCD_FLAGS_1, cfg) {
|
||||
cfg.sample_mask = msaa ? dyns->ms.sample_mask : UINT16_MAX;
|
||||
|
||||
if (fs) {
|
||||
cfg.render_target_mask =
|
||||
(fs->info.outputs_written >> FRAG_RESULT_DATA0) &
|
||||
cmdbuf->state.gfx.render.bound_attachments;
|
||||
}
|
||||
cfg.render_target_mask = rt_written;
|
||||
}
|
||||
|
||||
cs_update_vt_ctx(b)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue