[PATCH i-g-t v2 04/18] lib/rendercopy: Use the proper compression format for 16bpc on dg2/lnl+
Ville Syrjala
ville.syrjala at linux.intel.com
Wed Sep 18 12:05:04 UTC 2024
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Setup the dg2/lnl+ compression format correctly for 16bpc formats.
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
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 291ee99fd257..b33e7fc9feba 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