mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
isl: Check all channels in isl_formats_have_same_bits_per_channel
Cc: 22.2 <mesa-stable>
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17182>
(cherry picked from commit 0ed8a48ce9)
This commit is contained in:
parent
3410e08f53
commit
1122231f95
2 changed files with 5 additions and 2 deletions
|
|
@ -3172,7 +3172,7 @@
|
|||
"description": "isl: Check all channels in isl_formats_have_same_bits_per_channel",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -971,7 +971,10 @@ isl_formats_have_same_bits_per_channel(enum isl_format format1,
|
|||
return fmtl1->channels.r.bits == fmtl2->channels.r.bits &&
|
||||
fmtl1->channels.g.bits == fmtl2->channels.g.bits &&
|
||||
fmtl1->channels.b.bits == fmtl2->channels.b.bits &&
|
||||
fmtl1->channels.a.bits == fmtl2->channels.a.bits;
|
||||
fmtl1->channels.a.bits == fmtl2->channels.a.bits &&
|
||||
fmtl1->channels.l.bits == fmtl2->channels.l.bits &&
|
||||
fmtl1->channels.i.bits == fmtl2->channels.i.bits &&
|
||||
fmtl1->channels.p.bits == fmtl2->channels.p.bits;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue