radeonsi: always place sparse buffers in VRAM
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 23 Nov 2017 09:29:49 +0000 (10:29 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 6 Dec 2017 10:19:00 +0000 (11:19 +0100)
commit20ccb51ffcc46a68ab0eb82a43ed55a1e1952850
tree91404eb0755a6d3913939473582924c77e111fce
parent5e2962c9492e6a948516f6360f973e2e92034b01
radeonsi: always place sparse buffers in VRAM

Together with "radeonsi: fix the R600_RESOURCE_FLAG_UNMAPPABLE check",
this ensures that sparse buffers are placed in VRAM.

Noticed by an assertion that started triggering with commit d4fac1e1d7
("gallium/radeon: enable suballocations for VRAM with no CPU access")

Fixes KHR-GL45.sparse_buffer_tests.BufferStorageTest in debug builds.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c