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:
@@ -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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user