diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-09-09 09:55:07 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2014-09-10 12:01:10 +0900 |
commit | 5679ccfcaf8221cc1252e3214e182085dd850d33 (patch) | |
tree | 19dff2aa7486450bc9c41caded4343d138f38b85 /src/gallium/drivers | |
parent | 720cfb6fe9a3dafadf3bc034008f7c5c15973866 (diff) |
r600g,radeonsi: Set RADEON_GEM_NO_CPU_ACCESS flag for tiled BOs
This lets the kernel know that such BOs can be pinned outside of the CPU
accessible part of VRAM.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index d85b64b457f..227a221bb7e 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -156,6 +156,7 @@ bool r600_init_resource(struct r600_common_screen *rscreen, rtex->surface.level[0].mode >= RADEON_SURF_MODE_1D) { res->domains = RADEON_DOMAIN_VRAM; flags &= ~RADEON_FLAG_CPU_ACCESS; + flags |= RADEON_FLAG_NO_CPU_ACCESS; } /* Allocate a new resource. */ |