[Mesa-dev] [PATCH 6/7] radeonsi: program multi draw and indirect draw count parameters

Marek Olšák maraeo at gmail.com
Wed Aug 3 18:05:36 UTC 2016


On Tue, Aug 2, 2016 at 10:18 PM, Nicolai Hähnle <nhaehnle at gmail.com> wrote:
> Bas pointed out some things that mean this patch (and the next) probably
> need to be reworked. The tests were probably not thorough enough.

I think that all indirect parameters are read by PFP. Our cache flush
sequence already takes that into account and emits PFP_SYNC_ME.

Also note that the driver only handles coherency between TC L2 and
CB/DB caches. For anything else (e.g. special CP packets), you need to
check r600_resource::TC_L2_dirty, which will tell you whether you need
to flush TC before you can use the buffer with a block not using TC.
See all usages of TC_L2_dirty.

Marek


More information about the mesa-dev mailing list