gallium/radeon: add RADEON_USAGE_SYNCHRONIZED
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 7 Sep 2016 08:57:56 +0000 (10:57 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 27 Sep 2016 14:45:02 +0000 (16:45 +0200)
commite703f71ebdf91938c83f47c898f1da058ce0ac32
tree560e9ddc0e7c46b60dd31fde2c1672d4d7df0415
parent84f156c0cbf0deb0f51163dc3fd6b09a62270c50
gallium/radeon: add RADEON_USAGE_SYNCHRONIZED

This is really the behavior we want most of the time, but having a
SYNCHRONIZED flag instead of an UNSYNCHRONIZED one has the advantage that
OR'ing different flags together always results in stronger guarantees.

The parent BOs of sub-allocated buffers will be added unsynchronized.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/radeon/r600_cs.h
src/gallium/drivers/radeon/radeon_uvd.c
src/gallium/drivers/radeon/radeon_vce.c
src/gallium/drivers/radeon/radeon_winsys.h