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

2017-06-20 Thread Chris Wilson
Quoting Kenneth Graunke (2017-06-20 00:33:35) > 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 MA

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

2017-06-19 Thread Kenneth Graunke
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

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

2017-06-19 Thread Chris Wilson
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 Cc: Kenneth Grau