lavapipe: fix color-only renderpass clears
not all attachments must be cleared Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9234>
This commit is contained in:
committed by
Marge Bot
parent
5e0e04f288
commit
41bd5f7cd7
@@ -1276,12 +1276,10 @@ static void render_subpass_clear_fast(struct rendering_state *state)
|
||||
state->pending_clear_aspects[a] = 0;
|
||||
}
|
||||
|
||||
if (subpass->depth_stencil_attachment) {
|
||||
if (subpass->depth_stencil_attachment &&
|
||||
attachment_needs_clear(state, subpass->depth_stencil_attachment->attachment)) {
|
||||
uint32_t ds = subpass->depth_stencil_attachment->attachment;
|
||||
|
||||
if (!attachment_needs_clear(state, ds))
|
||||
return;
|
||||
|
||||
struct lvp_render_pass_attachment *att = &state->pass->attachments[ds];
|
||||
struct lvp_image_view *imgv = state->vk_framebuffer->attachments[ds];
|
||||
const struct util_format_description *desc = util_format_description(imgv->surface->format);
|
||||
|
||||
Reference in New Issue
Block a user