[igt-dev] [PATCH i-g-t 3/9] lib/intel_batchbuffer: Add blitter copy using XY_SRC_COPY_BLT
Imre Deak
imre.deak at intel.com
Thu Jan 30 14:23:24 UTC 2020
On Thu, Jan 30, 2020 at 10:26:28AM +0000, Chris Wilson wrote:
> Quoting Chris Wilson (2020-01-30 10:17:40)
> > Quoting Imre Deak (2020-01-29 18:15:55)
> > > + if ((src_tiling | dst_tiling) >= I915_TILING_Y) {
> > > + igt_assert(gen >= 6);
> > > + batch[i++] = MI_FLUSH_DW | 2;
> >
> > MI_FLUSH_DW is only 3 dwords on gen6, so
> >
> > batch[i] = MI_FLUSH_DW | 1;
> > if (has_64b_reloc)
> > batch[i]++;
> > i++;
> >
> > or something prettier.
>
> Actually, you can get away with MI_FLUSH_DW | 2 as that should indicate
> a qword write instead for gen6/7.
Ok, making it qword for gen6/7 and dword for gen8+.
--Imre
More information about the igt-dev
mailing list