diff --git a/xf86drm.c b/xf86drm.c index 5933e4bc..76fdfaab 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -261,6 +261,7 @@ drmGetAfbcFormatModifierNameFromArm(uint64_t modifier, FILE *fp) static bool drmGetAfrcFormatModifierNameFromArm(uint64_t modifier, FILE *fp) { + bool scan_layout; for (unsigned int i = 0; i < 2; ++i) { uint64_t coding_unit_block = (modifier >> (i * 4)) & AFRC_FORMAT_MOD_CU_SIZE_MASK; @@ -292,7 +293,7 @@ drmGetAfrcFormatModifierNameFromArm(uint64_t modifier, FILE *fp) } } - bool scan_layout = + scan_layout = (modifier & AFRC_FORMAT_MOD_LAYOUT_SCAN) == AFRC_FORMAT_MOD_LAYOUT_SCAN; if (scan_layout) { fprintf(fp, "SCAN");