From 3d4bfe8c893d016ef43d1ebf28e4607aa1f540a4 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Wed, 3 Jun 2009 13:54:43 +1000 Subject: nouveau: 0.0.14 + extend bo interface to support subrange mapping Normal map() should operate as before, and map_range()/map_flush() should give correct results but lacking any performance difference from map(). Nothing exiting being done here yet, but the interface is a good start. --- shared-core/nouveau_drm.h | 6 +++--- shared-core/nouveau_drv.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'shared-core') diff --git a/shared-core/nouveau_drm.h b/shared-core/nouveau_drm.h index e999d20d..dc6a1945 100644 --- a/shared-core/nouveau_drm.h +++ b/shared-core/nouveau_drm.h @@ -25,7 +25,7 @@ #ifndef __NOUVEAU_DRM_H__ #define __NOUVEAU_DRM_H__ -#define NOUVEAU_DRM_HEADER_PATCHLEVEL 13 +#define NOUVEAU_DRM_HEADER_PATCHLEVEL 14 struct drm_nouveau_channel_alloc { uint32_t fb_ctxdma_handle; @@ -154,8 +154,6 @@ struct drm_nouveau_setparam { #define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1) #define NOUVEAU_GEM_DOMAIN_GART (1 << 2) #define NOUVEAU_GEM_DOMAIN_MAPPABLE (1 << 3) -#define NOUVEAU_GEM_DOMAIN_TILE (1 << 30) -#define NOUVEAU_GEM_DOMAIN_TILE_ZETA (1 << 31) struct drm_nouveau_gem_info { uint32_t handle; @@ -163,6 +161,8 @@ struct drm_nouveau_gem_info { uint64_t size; uint64_t offset; uint64_t map_handle; + uint32_t tile_mode; + uint32_t tile_flags; }; struct drm_nouveau_gem_new { diff --git a/shared-core/nouveau_drv.h b/shared-core/nouveau_drv.h index ce52ce27..841cbf53 100644 --- a/shared-core/nouveau_drv.h +++ b/shared-core/nouveau_drv.h @@ -34,7 +34,7 @@ #define DRIVER_MAJOR 0 #define DRIVER_MINOR 0 -#define DRIVER_PATCHLEVEL 13 +#define DRIVER_PATCHLEVEL 14 #define NOUVEAU_FAMILY 0x0000FFFF #define NOUVEAU_FLAGS 0xFFFF0000 -- cgit v1.2.3