mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
intel/isl: Fix isl_color_value_unpack to match the prototype
The prototype uses a pointer and the actual function definition had an array. For some reason, GCC never complained about this until GCC 11. This fixes a compile warning when building with GCC 11. Fixes:09ced65420"intel/isl: Add format conversion code" Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10537> (cherry picked from commitb80720acb1)
This commit is contained in:
parent
4c0b3b5d9e
commit
dd20621ac3
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "intel/isl: Fix isl_color_value_unpack to match the prototype",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "09ced6542049986f7fe52af8087aec9fc23d9f16"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1318,7 +1318,7 @@ unpack_channel(union isl_color_value *value,
|
|||
void
|
||||
isl_color_value_unpack(union isl_color_value *value,
|
||||
enum isl_format format,
|
||||
const uint32_t data_in[4])
|
||||
const uint32_t *data_in)
|
||||
{
|
||||
const struct isl_format_layout *fmtl = isl_format_get_layout(format);
|
||||
assert(fmtl->colorspace == ISL_COLORSPACE_LINEAR ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue