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:
committed by
Marge Bot
parent
bd529b7983
commit
b63dad3ce5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user