Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6067>
*/
const struct util_format_description *desc =
util_format_description(resource->data.image_format);
*/
const struct util_format_description *desc =
util_format_description(resource->data.image_format);
util_format_get_first_non_void_channel(resource->data.image_format);
util_format_get_first_non_void_channel(resource->data.image_format);
if (desc->channel[i].pure_integer ||
desc->channel[i].type == UTIL_FORMAT_TYPE_FLOAT)
if (desc->channel[i].pure_integer ||
desc->channel[i].type == UTIL_FORMAT_TYPE_FLOAT)