[igt-dev] [PATCH i-g-t 3/9] lib/intel_batchbuffer: Add blitter copy using XY_SRC_COPY_BLT

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 30 10:26:28 UTC 2020


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.
-Chris


More information about the igt-dev mailing list