projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bb9ae3
)
Revert "[intel] Use the memory type mask containing the caching flags."
author
Eric Anholt
<eric@anholt.net>
Wed, 2 Jan 2008 23:51:27 +0000
(15:51 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 2 Jan 2008 23:51:27 +0000
(15:51 -0800)
This reverts commit
8bb9ae3693362a302206255c61f512d942df9bbf
.
Validating our kernel buffers with the caching off in flags but on in mask
means that the kernel migrates the buffer to be uncached, which is undesired.
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c
b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c
index 92c0be5e0f85ea3fb8876033bbc3e9f74df31a35..b9eabb42c010ce80a33c8e117e65e56283df155f 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c
+++ b/
src/mesa/drivers/dri/intel/intel_bufmgr_ttm.c
@@
-59,7
+59,7
@@
* as it would require a bit of investigation to figure
* out what mask value should be used.
*/
-#define INTEL_BO_MASK (DRM_BO_MASK_MEM
TYPE
| \
+#define INTEL_BO_MASK (DRM_BO_MASK_MEM | \
DRM_BO_FLAG_READ | \
DRM_BO_FLAG_WRITE | \
DRM_BO_FLAG_EXE)