gallium/radeon: do not reallocate user memory buffers
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 12 Jan 2016 14:29:18 +0000 (09:29 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 14 Jan 2016 14:41:24 +0000 (09:41 -0500)
commite976860638c6fb9f69b9cf3a82acaba55c08e274
treef8a11602169358e460a607781b7c843606fbe7a8
parent321140d563730b210e6390c5b73c09fdcf9649af
gallium/radeon: do not reallocate user memory buffers

The whole point of AMD_pinned_memory is that applications don't have to map
buffers via OpenGL - but they're still allowed to, so make sure we don't break
the link between buffer object and user memory unless explicitly instructed
to.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/winsys/amdgpu/drm/amdgpu_bo.c
src/gallium/winsys/radeon/drm/radeon_drm_bo.c