mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 07:10:11 +01:00
nouveau: fill in bo->tiled field for referenced buffers
Fixes the dri1 gallium driver if the front buffer happens to be non-linear.
This commit is contained in:
parent
dbffeadcfc
commit
00fae87f96
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue