[PATCH i-g-t] lib/intel/veboxcopy: Respect buffer MOCS index

Juha-Pekka Heikkilä juhapekka.heikkila at gmail.com
Mon Aug 11 09:02:20 UTC 2025


Hi Tvrtko,

I'll add this to my list, Kamil was already earlier asking me about this. I
got back from vacation and needed to sort other things first.

/Juha-Pekka

On Mon, Aug 11, 2025 at 11:43 AM Tvrtko Ursulin <tursulin at ursulin.net>
wrote:

>
> On 22/07/2025 08:39, Tvrtko Ursulin wrote:
> > Set the MOCS indices in surface state from the source and
> > destination buffers. So far it was done only for the input
> > buffer and only for 4Tile formats. Always setting it alings
> > with how rendercopy does it and it fixes the AuxCCS tests on
> > ADL when target is of the MC flavour.
> >
> > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>
> > Cc: Imre Deak <imre.deak at intel.com>
> > Cc: Juha-Pekka Heikkilä <juha-pekka.heikkila at intel.com>
> > Cc: Mika Kahola <mika.kahola at intel.com>
> > ---
> > Lets see what the CI will think of this change.
>
> CI is happy. Any takers for review?
>
> Regards,
>
> Tvrtko
>
> > Curiously the AuxCCS tests where target is RC, so rendercopy
> > which does set the MOCS correctly is used, are still flaky so
> > that sounds like a different problem.
> > ---
> >   lib/veboxcopy_gen12.c | 4 ++++
> >   1 file changed, 4 insertions(+)
> >
> > diff --git a/lib/veboxcopy_gen12.c b/lib/veboxcopy_gen12.c
> > index 4e3aefaf1f44..2193433a1c00 100644
> > --- a/lib/veboxcopy_gen12.c
> > +++ b/lib/veboxcopy_gen12.c
> > @@ -258,6 +258,8 @@ static void emit_tiling_convert_cmd(struct intel_bb
> *ibb,
> >
> >       if (HAS_4TILE(ibb->devid))
> >               tc->tc1_2.input_mocs_idx = IS_DG2(ibb->devid) ? 3 : 9;
> > +     else
> > +             tc->tc1_2.input_mocs_idx = src->mocs_index;
> >
> >       tc->tc1_2.input_tiled_resource_mode = src->tiling ==
> I915_TILING_Yf;
> >
> > @@ -278,6 +280,8 @@ static void emit_tiling_convert_cmd(struct intel_bb
> *ibb,
> >                       dst->compression == I915_COMPRESSION_RENDER;
> >       }
> >
> > +     tc->tc3_4.output_mocs_idx = dst->mocs_index;
> > +
> >       if (HAS_4TILE(ibb->devid))
> >               tc->tc3_4.output_mocs_idx = IS_DG2(ibb->devid) ? 3 : 9;
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/igt-dev/attachments/20250811/600b11af/attachment-0001.htm>


More information about the igt-dev mailing list