pvr: remove image pointer from image view struct

A pointer is also stored in the base vk_image_view struct, so we can use this
one instead.

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/18373>
This commit is contained in:
Frank Binns
2022-08-26 14:57:36 +01:00
committed by Marge Bot
parent 65c9a810ee
commit 0013ef89bf
5 changed files with 19 additions and 13 deletions

View File

@@ -240,10 +240,13 @@ pvr_process_graphics_cmd(struct pvr_device *device,
/* Get any imported buffers used in framebuffer attachments. */
for (uint32_t i = 0U; i < framebuffer->attachment_count; i++) {
if (!framebuffer->attachments[i]->image->vma->bo->is_imported)
const struct pvr_image *image =
vk_to_pvr_image(framebuffer->attachments[i]->vk.image);
if (!image->vma->bo->is_imported)
continue;
bos[bo_count].bo = framebuffer->attachments[i]->image->vma->bo;
bos[bo_count].bo = image->vma->bo;
bos[bo_count].flags = PVR_WINSYS_JOB_BO_FLAG_WRITE;
bo_count++;
}