lib/intel_aux_pgtable: Library to add support for FP16 compressed formats
PATCH 1/2 lib/intel_aux_pgtable: Library to add support for FP16 compressed formats
MTL supports FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory. In this test platform shall render compression in display engine to receive FP16 compressed formats.
This was tested with kernel patch,
https://patchwork.freedesktop.org/patch/563854
Test-with: [email protected]
cc Juha-Pekka Heikkila <[email protected]>
cc Bhanuprakash Modem <[email protected]>
cc Swati Sharma <[email protected]>
Signed-off-by Melanie Lobo <[email protected]>
--- lib/intel_aux_pgtable.c | 5 +++++ 1 file changed, 5 insertions(+)
lib/intel_aux_pgtable.c +5 -0
@@ -22,6 +22,7 @@#define AUX_FORMAT_AYUV 0x09#define AUX_FORMAT_ARGB_8B 0x0A#define AUX_FORMAT_NV12_21 0x0F +#define AUX_FORMAT_XRGB16161616_64B 0x10struct pgtable_level_desc {int idx_shift;
@@ -306,6 +307,10 @@ static uint64_t pgt_get_l1_flags(const struct intel_buf *buf, int surface_idx) entry.e.format =AUX_FORMAT_ARGB_8B ; entry.e.depth =bpp_to_depth_val (32 );break ; +case 64 : + entry.e.format =AUX_FORMAT_XRGB16161616_64B ; + entry.e.depth =bpp_to_depth_val (64 ); +break ;default :igt_assert (0 ); }
Signature · 1 line
2.17.1