Commit 5831c441 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Marge Bot
Browse files

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's avatarAlyssa Rosenzweig <alyssa@collabora.com>
Part-of: <!16315>
parent bf6372df
Pipeline #577071 waiting for manual action with stages
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment