[PATCH i-g-t 6/7] lib/rendercopy_gen9: Allow to use all tilings on flatccs platforms
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Thu Apr 25 10:47:20 UTC 2024
Instead of limiting compression to Tile4 lets enable it for any
tiling when platform has flatccs area.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
lib/rendercopy_gen9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/rendercopy_gen9.c b/lib/rendercopy_gen9.c
index 7c7563d50c..67bb7cfacd 100644
--- a/lib/rendercopy_gen9.c
+++ b/lib/rendercopy_gen9.c
@@ -175,6 +175,7 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst,
case 64: ss->ss0.surface_format = SURFACEFORMAT_R16G16B16A16_FLOAT; break;
default: igt_assert(0);
}
+
ss->ss0.vertical_alignment = 1; /* align 4 */
ss->ss0.horizontal_alignment = 1; /* align 4 or HALIGN_32 on display ver >= 13*/
@@ -232,7 +233,6 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst,
ss->ss6.aux_mode = 0x5; /* AUX_CCS_E */
if (buf->ccs[0].stride) {
-
ss->ss6.aux_pitch = (buf->ccs[0].stride / 128) - 1;
address = intel_bb_offset_reloc_with_delta(ibb, buf->handle,
@@ -268,7 +268,7 @@ gen9_bind_buf(struct intel_bb *ibb, const struct intel_buf *buf, int is_dst,
ss->ss13.clear_address_hi = (address + buf->cc.offset) >> 32;
}
- if (HAS_4TILE(ibb->devid)) {
+ if (HAS_FLATCCS(ibb->devid)) {
ss->ss7.dg2.memory_compression_type = 0;
ss->ss7.dg2.memory_compression_enable = 0;
ss->ss7.dg2.disable_support_for_multi_gpu_partial_writes = 1;
--
2.34.1
More information about the igt-dev
mailing list