r600g,radeonsi: Inform the kernel if a BO will likely be accessed by the CPU
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 26 Aug 2014 09:06:49 +0000 (18:06 +0900)
committerMichel Dänzer <michel@daenzer.net>
Tue, 2 Sep 2014 06:24:07 +0000 (15:24 +0900)
commit51131c423c213c291106c7756558ac84654c24b4
tree04fb197f19c1eb3ad281db5afdc89cba79f0d4bd
parent2d5d1f55983f645df97f0b44ab95235d30faa7bf
r600g,radeonsi: Inform the kernel if a BO will likely be accessed by the CPU

This allows the kernel to prevent such BOs from ever being stored in the
CPU inaccessible part of VRAM.

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