mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 23:20:08 +01:00
asahi: generalize compression check
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34585>
This commit is contained in:
parent
72f3dcc8da
commit
0dca602aff
1 changed files with 1 additions and 1 deletions
|
|
@ -503,7 +503,7 @@ agx_resource_create_with_modifiers(struct pipe_screen *screen,
|
|||
* inferring the shader image flag. Do so to avoid reallocation in case the
|
||||
* resource is later used as an image.
|
||||
*/
|
||||
if (nresource->modifier != DRM_FORMAT_MOD_APPLE_GPU_TILED_COMPRESSED &&
|
||||
if (!ail_is_drm_modifier_compressed(nresource->modifier) &&
|
||||
templ->depth0 == 1) {
|
||||
|
||||
nresource->base.bind |= PIPE_BIND_SHADER_IMAGE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue