lib/i915_blt: Equalize pitch and aux-ccs for full resolve
PATCH 1/1 lib/i915_blt: Equalize pitch and aux-ccs for full resolve
According to documentation and hw team suggestion use source pitch and aux-ccs in destination object when inplace decompression is performed (full-resolve operation).
Signed-off-by Zbigniew Kempczyński <[email protected]>
Cc Karolina Drobnik <[email protected]>
--- lib/i915/i915_blt.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
lib/i915/i915_blt.c +9 -2
@@ -317,8 +317,15 @@ static void fill_data(struct gen12_block_copy_data *data, data->dw00.special_mode =__special_mode (blt); data->dw00.length = extended_command ?20 :10 ; - data->dw01.dst_pitch = blt->dst.pitch -1 ; - data->dw01.dst_aux_mode =__aux_mode (&blt->dst); +if (__special_mode (blt) ==SM_FULL_RESOLVE ) + data->dw01.dst_pitch = blt->src.pitch -1 ; +else + data->dw01.dst_pitch = blt->dst.pitch -1 ; + +if (__special_mode (blt) ==SM_FULL_RESOLVE ) + data->dw01.dst_aux_mode =__aux_mode (&blt->src); +else + data->dw01.dst_aux_mode =__aux_mode (&blt->dst); data->dw01.dst_mocs = blt->dst.mocs; data->dw01.dst_compression = blt->dst.compression; data->dw01.dst_tiling =__block_tiling (blt->dst.tiling);
Signature · 1 line
2.34.1