mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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:
parent
bf6372df62
commit
5831c44121
1 changed files with 2 additions and 7 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue