diff --git a/src/panfrost/util/pan_lower_framebuffer.c b/src/panfrost/util/pan_lower_framebuffer.c index df9929b9a88..0a4b82be0f8 100644 --- a/src/panfrost/util/pan_lower_framebuffer.c +++ b/src/panfrost/util/pan_lower_framebuffer.c @@ -66,11 +66,12 @@ pan_unpacked_type_for_format(const struct util_format_description *desc) unreachable("Void format not renderable"); bool large = (desc->channel[c].size > 16); + bool large_norm = (desc->channel[c].size > 8); bool bit8 = (desc->channel[c].size == 8); assert(desc->channel[c].size <= 32); if (desc->channel[c].normalized) - return large ? nir_type_float32 : nir_type_float16; + return large_norm ? nir_type_float32 : nir_type_float16; switch (desc->channel[c].type) { case UTIL_FORMAT_TYPE_UNSIGNED: