Re: [Mesa-dev] [PATCH] anv/query: Use snooping on !LLC platforms

2017-04-07 Thread Chris Wilson
On Thu, Apr 06, 2017 at 08:49:54PM -0700, Jason Ekstrand wrote: > Commit b2c97bc789198427043cd902bc76e194e7e81c7d which made us start > using a busy-wait for individual query results also messed up cache > flushing on !LLC platforms. For one thing, I forgot the mfence after > the clflush so memory

[Mesa-dev] [PATCH] anv/query: Use snooping on !LLC platforms

2017-04-06 Thread Jason Ekstrand
Commit b2c97bc789198427043cd902bc76e194e7e81c7d which made us start using a busy-wait for individual query results also messed up cache flushing on !LLC platforms. For one thing, I forgot the mfence after the clflush so memory access wasn't properly getting fenced. More importantly, however, was