mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-26 07:00:31 +01:00
lavapipe: zero fb attachment array at rp start
this avoids invalid access if an attachment moves to a lower index in a smaller renderpass Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24339>
This commit is contained in:
parent
b39815fa9c
commit
33d06f8cc2
1 changed files with 1 additions and 0 deletions
|
|
@ -1713,6 +1713,7 @@ handle_begin_rendering(struct vk_cmd_queue_entry *cmd,
|
|||
state->framebuffer.nr_cbufs = info->colorAttachmentCount;
|
||||
|
||||
state->color_att_count = info->colorAttachmentCount;
|
||||
memset(state->framebuffer.cbufs, 0, sizeof(state->framebuffer.cbufs));
|
||||
for (unsigned i = 0; i < info->colorAttachmentCount; i++) {
|
||||
render_att_init(&state->color_att[i], &info->pColorAttachments[i], state->poison_mem, false);
|
||||
if (state->color_att[i].imgv) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue