[Mesa-dev] [PATCH v2 02/10] i965: Track initial CPU domain for mappings

Kenneth Graunke kenneth at whitecape.org
Mon Jun 19 23:33:35 UTC 2017


On Monday, June 19, 2017 3:55:01 AM PDT Chris Wilson wrote:
> If we need to force a cache domain transition (e.g. a buffer was in the
> CPU domain and we want to access it via WC) then we need to trigger a
> clflush. This overrides the use of MAP_ASYNC as we call into the kernel
> to change domains on the whole object.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Kenneth Graunke <kenneth at whitecape.org>
> Cc: Matt Turner <mattst88 at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_bufmgr.c        | 14 ++++++++++----
>  src/mesa/drivers/dri/i965/brw_bufmgr.h        | 10 ++++++++++
>  src/mesa/drivers/dri/i965/intel_batchbuffer.c |  1 +
>  3 files changed, 21 insertions(+), 4 deletions(-)

This patch doesn't work.  For example, on Broxton,

$ piglit/bin/vbo-map-unsync -auto -fbo

fails most of the time.
-------------- 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/20170619/05c2f190/attachment-0001.sig>


More information about the mesa-dev mailing list