ilo: mapping a resource may make some states dirty
authorChia-I Wu <olvaffe@gmail.com>
Thu, 13 Jun 2013 10:22:40 +0000 (18:22 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 13 Jun 2013 15:47:18 +0000 (23:47 +0800)
commitc7e9b15010c32302d3cceac06ff8c34619deab7c
tree39f139711c3d679e5cd1ce29cd07b46756899353
parent5f15050dc9819beb4513b9923af3b5d1600b184f
ilo: mapping a resource may make some states dirty

When a resource is busy and is mapped with
PIPE_TRANSFER_DISCARD_WHOLE_RESOURCE, the underlying bo is replaced.  We need
to mark states affected by the resource dirty.

With this change, we no longer have to emit vertex buffers and index buffer
unconditionally.
src/gallium/drivers/ilo/ilo_3d.c
src/gallium/drivers/ilo/ilo_state.c
src/gallium/drivers/ilo/ilo_state.h
src/gallium/drivers/ilo/ilo_transfer.c