panfrost: Relax image check

Shader images on Valhall don't allow nonzero "Minimum level". However,
pan_texture lowers away nonzero minimum levels anyway, so there's nothing to
check. Fixes:

KHR-GLES31.core.shader_image_load_store.advanced-allMips-cs

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16315>
This commit is contained in:
Alyssa Rosenzweig 2022-05-03 17:41:23 -04:00 committed by Marge Bot
parent bf6372df62
commit 5831c44121

View file

@ -953,16 +953,11 @@ panfrost_emit_images(struct panfrost_batch *batch, enum pipe_shader_type stage)
*
* Similar concerns apply to 3D textures.
*/
if (view.base.target == PIPE_BUFFER) {
if (view.base.target == PIPE_BUFFER)
view.base.target = PIPE_BUFFER;
} else {
else
view.base.target = PIPE_TEXTURE_2D_ARRAY;
/* Hardware limitation */
if (view.base.u.tex.first_level != 0)
unreachable("TODO: mipmaps special handling");
}
panfrost_update_sampler_view(&view, &ctx->base);
out[i] = view.bifrost_descriptor;