anv: Don't disable snooping for mempools
There's an intermittent flushing problem with VkEvent that we need to root cause. For now, using the snooping feature keeps the memory pools up to date with GPU writes and fixes the problem.
This commit is contained in:
parent
0c4ef36360
commit
f28645f71c
|
@ -441,6 +441,7 @@ anv_block_pool_grow(struct anv_block_pool *pool, struct anv_block_state *state)
|
||||||
goto fail;
|
goto fail;
|
||||||
cleanup->gem_handle = gem_handle;
|
cleanup->gem_handle = gem_handle;
|
||||||
|
|
||||||
|
#if 0
|
||||||
/* Regular objects are created I915_CACHING_CACHED on LLC platforms and
|
/* Regular objects are created I915_CACHING_CACHED on LLC platforms and
|
||||||
* I915_CACHING_NONE on non-LLC platforms. However, userptr objects are
|
* I915_CACHING_NONE on non-LLC platforms. However, userptr objects are
|
||||||
* always created as I915_CACHING_CACHED, which on non-LLC means
|
* always created as I915_CACHING_CACHED, which on non-LLC means
|
||||||
|
@ -452,6 +453,7 @@ anv_block_pool_grow(struct anv_block_pool *pool, struct anv_block_state *state)
|
||||||
anv_gem_set_domain(pool->device, gem_handle,
|
anv_gem_set_domain(pool->device, gem_handle,
|
||||||
I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
|
I915_GEM_DOMAIN_GTT, I915_GEM_DOMAIN_GTT);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Now that we successfull allocated everything, we can write the new
|
/* Now that we successfull allocated everything, we can write the new
|
||||||
* values back into pool. */
|
* values back into pool. */
|
||||||
|
|
Loading…
Reference in New Issue