[Mesa-dev] [PATCH v4 2/2] anv/query: Busy-wait for available query entries

Grazvydas Ignotas notasas at gmail.com
Wed Apr 5 22:36:09 UTC 2017


On Wed, Apr 5, 2017 at 11:04 PM, Jason Ekstrand <jason at jlekstrand.net>
wrote:

> Before, we were just looking at whether or not the user wanted us to
> wait and waiting on the BO.  Some clients, such as the Serious engine,
> use a single query pool for hundreds of individual query results where
> the writes for those queries may be split across several command
> buffers.  In this scenario, the individual query we're looking for may
> become available long before the BO is idle so waiting on the query pool
> BO to be finished is wasteful. This commit makes us instead busy-loop on
> each query until it's available.
>
> This significantly reduces pipeline bubbles and improves performance of
> The Talos Principle on medium settings (where the GPU isn't overloaded
> with drawing) by around 20% on my SkyLake gt4.
>

Skylake GT2 running Talos, medium settings, some scene of my choice:
before: 32fps
after: 36fps
GL: 38fps
Tested-by: Grazvydas Ignotas <notasas at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170406/4f9339e3/attachment.html>


More information about the mesa-dev mailing list