Skip to content

panfrost: save/restore image state around resource conversion

Eric Smith requested to merge ericsmith/mesa:ericsmith/piglit_image_crash into main

What does this MR do and why?

panfrost: save/restore image state around resource conversion

pan_resource_modifier_convert can use a blit to convert images
from AFBC. If we call this from panfrost_set_shader_images then
we end up trashing the images that we're trying to set
up for the current shader (they get replaced by the blit shader).
Fix this by saving/restoring the shader image state under
construction.

This fixes a crash in piglit oes_egl_image_external_essl3 tests.
Edited by Eric Smith

Merge request reports