intel/blorp: Allow CCS copies of 1010102 formats
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Jan 2018 19:42:35 +0000 (11:42 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 May 2018 18:16:33 +0000 (11:16 -0700)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp_blit.c

index 321b3e3172ddf3e82720790505fa16fcb5cb7be4..e825862d71ae6dcdc3385e65adb73039cf380d92 100644 (file)
@@ -2416,6 +2416,12 @@ get_ccs_compatible_uint_format(const struct isl_format_layout *fmtl)
    case ISL_FORMAT_R32_SNORM:
       return ISL_FORMAT_R32_UINT;
 
+   case ISL_FORMAT_B10G10R10A2_UNORM:
+   case ISL_FORMAT_B10G10R10A2_UNORM_SRGB:
+   case ISL_FORMAT_R10G10B10A2_UNORM:
+   case ISL_FORMAT_R10G10B10A2_UINT:
+      return ISL_FORMAT_R10G10B10A2_UINT;
+
    default:
       unreachable("Not a compressible format");
    }