[PATCH i-g-t 13/37] lib/rendercopy: Use the proper compression format for 16bpc on dg2/lnl+
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Jul 2 23:27:53 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Setup the dg2/lnl+ compression format correctly for 16bpc formats.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
lib/rendercopy_gen9.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index b871a4b3dae1..ae4bb2606125 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -149,6 +149,8 @@ static const uint32_t xe2_render_copy[][4] = {
static uint32_t lnl_compression_format(const struct intel_buf *buf)
{
switch (buf->bpp) {
+ case 64:
+ return 0x7; /* CMF_R16_G16_B16_A16 */
case 32:
if (buf->depth == 30)
return 0x3; /* CMF_R10_G10_B10_A2 */
@@ -163,6 +165,8 @@ static uint32_t lnl_compression_format(const struct intel_buf *buf)
static uint32_t dg2_compression_format(const struct intel_buf *buf)
{
switch (buf->bpp) {
+ case 64:
+ return 0x5;
case 32:
if (buf->depth == 30)
return 0xc;
--
2.44.2
More information about the igt-dev
mailing list