Skip to content
Snippets Groups Projects
Commit b80720ac authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon: Committed by Marge Bot
Browse files

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: 09ced654 "intel/isl: Add format conversion code"
Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
Part-of: <!10537>
parent 1201aa93
No related branches found
No related tags found
No related merge requests found
......@@ -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 ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment