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>
This commit is contained in:
parent
1201aa9332
commit
b80720acb1
|
@ -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…
Reference in New Issue