mesa/src/asahi/layout
Alyssa Rosenzweig 4442be1155 asahi: Fix nonmipmapped array textures
pot_level can be greater than the number of levels actually included --
don't overallocate. Fix the issue and add a representative unit test.
Fixes:

   dEQP-GLES2.functional.texture.size.cube.512x512_rgb888

Fixes: 6ff75da8aa ("ail: Introduce image layout module")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18380>
2022-09-04 18:05:31 +00:00
..
tests asahi: Fix nonmipmapped array textures 2022-09-04 18:05:31 +00:00
layout.c asahi: Fix nonmipmapped array textures 2022-09-04 18:05:31 +00:00
layout.h
meson.build ail: Add unit tests for miptree layouts 2022-09-01 22:30:48 +00:00
README
tiling.c

# ail

ail is a small library for working with the image (and buffer) layouts
encountered with AGX hardware. Its design is inspired by isl. In
particular, ail strives to use isl unit suffixes and to represent
quantities in a canonical, API-agnostic fashion.

See the isl documentation for conventions in mesa/docs/isl for the conventions
that ail tries to adhere to, in particular mesa/docs/isl/units.rst.