aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-27 02:55:30 +0200
committerMarek Olšák <[email protected]>2011-09-29 01:10:07 +0200
commitbfa51dfeac67a7e3383614374c86bdfb5751997a (patch)
treeaa3da7a32925e2e0a743e943f77445fff264e1ad /src/gallium/winsys/radeon/drm/radeon_drm_bo.h
parent7b42ed6eb508e2f0b89f66f3f985ef1d76a0ef91 (diff)
winsys/radeon: simplify passing GEM domains through to GEM_CREATE
Diffstat (limited to 'src/gallium/winsys/radeon/drm/radeon_drm_bo.h')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.h b/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
index 047ea6b1cf2..3f5866f82db 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.h
@@ -36,11 +36,14 @@
#include "pipebuffer/pb_bufmgr.h"
#include "os/os_thread.h"
-#define RADEON_PB_USAGE_DOMAIN_GTT (1 << 29)
-#define RADEON_PB_USAGE_DOMAIN_VRAM (1 << 30)
-
struct radeon_bomgr;
+struct radeon_bo_desc {
+ struct pb_desc base;
+
+ unsigned initial_domains;
+};
+
struct radeon_bo {
struct pb_buffer base;
struct radeon_bomgr *mgr;