Skip to content
Snippets Groups Projects
Commit 81e25298 authored by Zbigniew Kempczyński's avatar Zbigniew Kempczyński Committed by unerlige
Browse files

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: default avatarZbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Karolina Drobnik <karolina.drobnik@intel.com>
Reviewed-by: default avatarKarolina Drobnik <karolina.drobnik@intel.com>
parent 7d03b700
No related branches found
No related tags found
Loading
......@@ -317,8 +317,14 @@ 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;
data->dw01.dst_aux_mode = __aux_mode(&blt->src);
} else {
data->dw01.dst_pitch = blt->dst.pitch - 1;
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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment