mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 07:50:11 +01:00
winsys/radeon: restore the old r600g winsys memory characteristics.
Use VRAM for static and immutable buffers. This restores the recently removed r600g winsys behaviour for memory locations. This also improoves rendering times on the gpu for some OpenSceneGraph based test cases by about 15%. Signed-off-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
50b0069fc1
commit
2717b8f034
1 changed files with 5 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue