diff options
author | Nanley Chery <nanley.g.chery@intel.com> | 2020-10-15 10:11:57 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-10-16 18:35:57 +0000 |
commit | 5e27e0432274a29e75f9267269a2b367eda33cbf (patch) | |
tree | 5827ec509a4086eb6500d1f987d43e9f89b2f531 /src/intel/isl/isl_format.c | |
parent | cf11ebfbc22b5ebabdcedac0e045deb0f63ecff7 (diff) |
intel/isl: Drop redundant unpack of unorm channels
Fixes: 09ced654204 ("intel/isl: Add format conversion code")
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7168>
Diffstat (limited to 'src/intel/isl/isl_format.c')
-rw-r--r-- | src/intel/isl/isl_format.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c index 5f92c3e1f36..6b848c2c53c 100644 --- a/src/intel/isl/isl_format.c +++ b/src/intel/isl/isl_format.c @@ -1272,7 +1272,6 @@ unpack_channel(union isl_color_value *value, switch (layout->type) { case ISL_UNORM: - unpacked.f32 = _mesa_unorm_to_float(packed, layout->bits); if (colorspace == ISL_COLORSPACE_SRGB) { if (layout->bits == 8) { unpacked.f32 = util_format_srgb_8unorm_to_linear_float(packed); |