mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 13:00:37 +01:00
zink: use mixed zs renderpass for depth read/write
this is triggered by u_blitter when doing src==dst blits Fixes:7781a75229("zink: add a renderpass flag for mixed zs layout") affects: GTF-GL46.gtf30.GL3Tests.framebuffer_blit.framebuffer_blit_functionality* Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15960> (cherry picked from commit9409756ee3)
This commit is contained in:
parent
357e3130ad
commit
df84664032
2 changed files with 5 additions and 1 deletions
|
|
@ -1165,7 +1165,7 @@
|
|||
"description": "zink: use mixed zs renderpass for depth read/write",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "7781a75229d5d071fdeb75b9932cc52c37b28552"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2075,7 +2075,11 @@ get_render_pass(struct zink_context *ctx)
|
|||
|
||||
bool needs_write_s = state.rts[fb->nr_cbufs].clear_stencil || outputs_written & BITFIELD64_BIT(FRAG_RESULT_STENCIL);
|
||||
if (!needs_write_z && (!ctx->dsa_state || !ctx->dsa_state->base.depth_enabled))
|
||||
/* depth sample, stencil write */
|
||||
state.rts[fb->nr_cbufs].mixed_zs = needs_write_s && zsbuf->bind_count[0];
|
||||
else
|
||||
/* depth write + sample */
|
||||
state.rts[fb->nr_cbufs].mixed_zs = needs_write_z && zsbuf->bind_count[0];
|
||||
state.rts[fb->nr_cbufs].needs_write = needs_write_z | needs_write_s;
|
||||
state.num_rts++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue