diff options
author | Marek Olšák <[email protected]> | 2017-12-01 00:06:34 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-12-05 13:30:34 +0100 |
commit | 9ac5504df5c31e60801d9d37c1f3d547c486bf0a (patch) | |
tree | 4a0f57e7d6e6a7d72df76b7af23bdae3ba47e3aa /src/gallium/drivers | |
parent | 5e805cc74bc52f97de8f6308fc06bc96623e7e09 (diff) |
gallium/radeon: move setting VRAM|GTT into winsyses
The combined VRAM|GTT heap will be removed.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer_common.c | 14 | ||||
-rw-r--r-- | src/gallium/drivers/radeon/r600_buffer_common.c | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer_common.c b/src/gallium/drivers/r600/r600_buffer_common.c index 5ff25ae4c5c..501b96fa0ba 100644 --- a/src/gallium/drivers/r600/r600_buffer_common.c +++ b/src/gallium/drivers/r600/r600_buffer_common.c @@ -176,20 +176,6 @@ void r600_init_resource_fields(struct r600_common_screen *rscreen, !(res->b.b.bind & PIPE_BIND_SCANOUT))) res->flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING; - /* If VRAM is just stolen system memory, allow both VRAM and - * GTT, whichever has free space. If a buffer is evicted from - * VRAM to GTT, it will stay there. - * - * DRM 3.6.0 has good BO move throttling, so we can allow VRAM-only - * placements even with a low amount of stolen VRAM. - */ - if (!rscreen->info.has_dedicated_vram && - (rscreen->info.drm_major < 3 || rscreen->info.drm_minor < 6) && - res->domains == RADEON_DOMAIN_VRAM) { - res->domains = RADEON_DOMAIN_VRAM_GTT; - res->flags &= ~RADEON_FLAG_NO_CPU_ACCESS; /* disallowed with VRAM_GTT */ - } - if (rscreen->debug_flags & DBG_NO_WC) res->flags &= ~RADEON_FLAG_GTT_WC; diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c index d162eeae662..ec282d55aaf 100644 --- a/src/gallium/drivers/radeon/r600_buffer_common.c +++ b/src/gallium/drivers/radeon/r600_buffer_common.c @@ -171,20 +171,6 @@ void si_init_resource_fields(struct si_screen *sscreen, else res->flags |= RADEON_FLAG_NO_INTERPROCESS_SHARING; - /* If VRAM is just stolen system memory, allow both VRAM and - * GTT, whichever has free space. If a buffer is evicted from - * VRAM to GTT, it will stay there. - * - * DRM 3.6.0 has good BO move throttling, so we can allow VRAM-only - * placements even with a low amount of stolen VRAM. - */ - if (!sscreen->info.has_dedicated_vram && - (sscreen->info.drm_major < 3 || sscreen->info.drm_minor < 6) && - res->domains == RADEON_DOMAIN_VRAM) { - res->domains = RADEON_DOMAIN_VRAM_GTT; - res->flags &= ~RADEON_FLAG_NO_CPU_ACCESS; /* disallowed with VRAM_GTT */ - } - if (sscreen->debug_flags & DBG(NO_WC)) res->flags &= ~RADEON_FLAG_GTT_WC; |