mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
intel/isl: Drop redundant unpack of unorm channels
Fixes:09ced65420("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> (cherry picked from commit5e27e04322)
This commit is contained in:
parent
c6396afbac
commit
ae6b7d1e3e
2 changed files with 1 additions and 2 deletions
|
|
@ -202,7 +202,7 @@
|
|||
"description": "intel/isl: Drop redundant unpack of unorm channels",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "09ced6542049986f7fe52af8087aec9fc23d9f16"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue