summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/radeon/drm/radeon_drm_bo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 2dca3b9d958..4bb433a41ee 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -530,6 +530,11 @@ radeon_winsys_bo_create(struct radeon_winsys *rws,
desc.initial_domains = RADEON_GEM_DOMAIN_GTT;
desc.reloc_domains = RADEON_GEM_DOMAIN_GTT;
break;
+ case PIPE_USAGE_IMMUTABLE:
+ case PIPE_USAGE_STATIC:
+ desc.initial_domains = RADEON_GEM_DOMAIN_VRAM;
+ desc.reloc_domains = RADEON_GEM_DOMAIN_VRAM;
+ break;
default:
if (bind & (PIPE_BIND_VERTEX_BUFFER | PIPE_BIND_INDEX_BUFFER |
PIPE_BIND_CONSTANT_BUFFER)) {