[Mesa-dev] [PATCH] i965: perf: flush batchbuffers at the beginning of queries

Kenneth Graunke kenneth at whitecape.org
Tue Jul 25 17:39:00 UTC 2017


On Tuesday, July 25, 2017 9:49:22 AM PDT Lionel Landwerlin wrote:
> As Chris commented, it makes more sense to have batch buffer flushes
> before the query. Usually applications like frame_retrace do a series
> of queries and in that case, with flushes at the end of the queries,
> we might still have the first query contained in 2 different batchs.
> More generally it would be quite usual to have the query contained in
> 2 batch buffers because we never now what's the fill rate of the
> current batch buffer.
> 
> If we move the flushing at the beginning of the queries, it's pretty
> much guaranteed that queries will be contained in a single batch
> buffer (unless the amount of commands is huge, but then it's only fair
> to include reloading request times in the measurements).
> 
> Fixes: adafe4b733c02 ("i965: perf: minimize the chances to spread queries across batchbuffers")
> Reported-by: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
> Cc: 17.1 <mesa-stable at lists.freedesktop.org>

17.2 branched, so:

Cc: "17.1 17.2" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170725/a02afcd7/attachment.sig>


More information about the mesa-dev mailing list