gallium/radeon: derive buffer placement and flags only at initialization
authorMarek Olšák <marek.olsak@amd.com>
Thu, 18 Aug 2016 14:30:00 +0000 (16:30 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 5 Sep 2016 16:01:15 +0000 (18:01 +0200)
commit0d2e43fcb1198a6e67c85feadb1ca8c360ddc284
treedb9eec8c7f041d0be80e03d7c2602928db81e1e7
parenta14c50bceb6b201e361b2cf6e3f453359d510284
gallium/radeon: derive buffer placement and flags only at initialization

Invalidated buffers don't have to go through it.

Split r600_init_resource into r600_init_resource_fields and
r600_alloc_resource.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_state_common.c
src/gallium/drivers/radeon/r600_buffer_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_descriptors.c