Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
*format_comp = 0;
*endian = ENDIAN_NONE;
+ if (pformat == PIPE_FORMAT_R11G11B10_FLOAT) {
+ *format = FMT_10_11_11_FLOAT;
+ *endian = r600_endian_swap(32);
+ return;
+ }
+
desc = util_format_description(pformat);
if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN) {
goto out_unknown;
const struct util_format_description *desc = util_format_description(format);
unsigned i;
+ if (format == PIPE_FORMAT_R11G11B10_FLOAT)
+ return true;
+
if (!desc)
return false;