projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbffead
)
nouveau: fill in bo->tiled field for referenced buffers
author
Ben Skeggs
<bskeggs@redhat.com>
Wed, 3 Jun 2009 00:24:30 +0000
(10:24 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 3 Jun 2009 00:25:53 +0000
(10:25 +1000)
Fixes the dri1 gallium driver if the front buffer happens to be non-linear.
libdrm/nouveau/nouveau_bo.c
patch
|
blob
|
history
diff --git
a/libdrm/nouveau/nouveau_bo.c
b/libdrm/nouveau/nouveau_bo.c
index
1bf6612
..
8832a0d
100644
(file)
--- a/
libdrm/nouveau/nouveau_bo.c
+++ b/
libdrm/nouveau/nouveau_bo.c
@@
-49,6
+49,15
@@
nouveau_bo_info(struct nouveau_bo_priv *nvbo, struct drm_nouveau_gem_info *arg)
nvbo->size = nvbo->base.size = arg->size;
nvbo->offset = arg->offset;
nvbo->map_handle = arg->map_handle;
+
+ if (nvbo->domain & NOUVEAU_GEM_DOMAIN_TILE) {
+ nvbo->base.tiled = 1;
+ if (nvbo->domain & NOUVEAU_GEM_DOMAIN_TILE_ZETA)
+ nvbo->base.tiled |= 2;
+ } else {
+ nvbo->base.tiled = 0;
+ }
+
return 0;
}