mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
panfrost: Put comment in correct #ifdef
Minor fix to make the code less confusing. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16697>
This commit is contained in:
parent
bd529b7983
commit
b63dad3ce5
1 changed files with 2 additions and 3 deletions
|
|
@ -83,15 +83,14 @@ panfrost_compression_tag(const struct util_format_description *desc,
|
|||
|
||||
if (panfrost_afbc_is_wide(modifier))
|
||||
flags |= MALI_AFBC_SURFACE_FLAG_WIDE_BLOCK;
|
||||
#endif
|
||||
|
||||
#if PAN_ARCH >= 7
|
||||
/* Used to make sure AFBC headers don't point outside the AFBC
|
||||
* body. HW is using the AFBC surface stride to do this check,
|
||||
* which doesn't work for 3D textures because the surface
|
||||
* stride does not cover the body. Only supported on v7+.
|
||||
*/
|
||||
#endif
|
||||
|
||||
#if PAN_ARCH >= 7
|
||||
if (dim != MALI_TEXTURE_DIMENSION_3D)
|
||||
flags |= MALI_AFBC_SURFACE_FLAG_CHECK_PAYLOAD_RANGE;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue