OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acbaff2
)
intel: Don't tile-align pitch for untiled buffers.
author
Eric Anholt
<eric@anholt.net>
Tue, 2 Mar 2010 23:25:42 +0000
(15:25 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 2 Mar 2010 23:39:37 +0000
(15:39 -0800)
This allows Mesa to use drm_intel_bo_alloc_tiled() for its tiled
buffers, since it makes its decision about pitch before telling
libdrm. They happen to be the same choices for the tiled case.
intel/intel_bufmgr_gem.c
patch
|
blob
|
history
diff --git
a/intel/intel_bufmgr_gem.c
b/intel/intel_bufmgr_gem.c
index
38e0ed9
..
9cf4095
100644
(file)
--- a/
intel/intel_bufmgr_gem.c
+++ b/
intel/intel_bufmgr_gem.c
@@
-258,7
+258,7
@@
drm_intel_gem_bo_tile_pitch(drm_intel_bufmgr_gem *bufmgr_gem,
unsigned long i;
if (tiling_mode == I915_TILING_NONE)
- return
ROUND_UP_TO(pitch, tile_width)
;
+ return
pitch
;
/* 965 is flexible */
if (bufmgr_gem->gen >= 4)