mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
i965: Correctly set MAP_WRITE when creating the LLC program cache map.
Using a read-only mapping is completely bogus - we use this mapping to write all new shaders to the cache. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
f37ede40ba
commit
2e3d825982
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ brw_cache_new_bo(struct brw_cache *cache, uint32_t new_size)
|
|||
if (can_do_exec_capture(brw->screen))
|
||||
new_bo->kflags = EXEC_OBJECT_CAPTURE;
|
||||
if (brw->has_llc)
|
||||
llc_map = brw_bo_map(brw, new_bo, MAP_READ | MAP_ASYNC);
|
||||
llc_map = brw_bo_map(brw, new_bo, MAP_READ | MAP_WRITE | MAP_ASYNC);
|
||||
|
||||
/* Copy any existing data that needs to be saved. */
|
||||
if (cache->next_offset != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue