r600g: don't modify pipe_resource in resource_copy_region, fixing race condition
authorMarek Olšák <maraeo@gmail.com>
Sun, 23 Sep 2012 21:12:17 +0000 (23:12 +0200)
committerMarek Olšák <maraeo@gmail.com>
Sat, 6 Oct 2012 02:31:16 +0000 (04:31 +0200)
commit6db53ca490b22ba3f16b3ab0beef7a5fc071a074
tree854d44928640da4085b6d4c3ce6aa81c6fde9dc1
parentd063c7b1421a6e8ad4e2efc1bf913920766cc5ee
r600g: don't modify pipe_resource in resource_copy_region, fixing race condition

pipe_resource can be shared between contexts, we shouldn't modify its
description. Instead, let's use the resource "views" (sampler views and
surfaces), where we can freely change almost any property of a resource.
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_blit.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state.c
src/gallium/drivers/r600/r600_texture.c