diff options
author | Scott D Phillips <[email protected]> | 2018-01-09 23:17:00 -0800 |
---|---|---|
committer | Scott D Phillips <[email protected]> | 2018-02-14 12:38:34 -0800 |
commit | 3b4f432d9bbdf86bb6e0e84c6053959aa3194daa (patch) | |
tree | ce3dc5838b983be2c6543889a524a6bb4f6f2cd9 | |
parent | d13ab69a78acd8ab538758c0f4cdd702d2c98939 (diff) |
i965/miptree: Initialize mcs with a linear map
When initializing mcs, map with MAP_RAW and fill in the linear
map. Removes a place where gtt mapping is used.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 22977d6659e..da5e3b0989d 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -1652,7 +1652,7 @@ intel_miptree_init_mcs(struct brw_context *brw, * * Note: the clear value for MCS buffers is all 1's, so we memset to 0xff. */ - void *map = brw_bo_map(brw, mt->mcs_buf->bo, MAP_WRITE); + void *map = brw_bo_map(brw, mt->mcs_buf->bo, MAP_WRITE | MAP_RAW); if (unlikely(map == NULL)) { fprintf(stderr, "Failed to map mcs buffer into GTT\n"); brw_bo_unreference(mt->mcs_buf->bo); |