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 <ch...@chris-wilson.co.uk>
> Cc: Kenneth Graunke <kenn...@whitecape.org>
> Cc: Matt Turner <matts...@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.

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to