vk/device: Emit PIPE_CONTROL flushes surrounding new STATE_BASE_ADDRESS
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 30 May 2015 15:02:52 +0000 (08:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 30 May 2015 15:08:07 +0000 (08:08 -0700)
commit33cccbbb738ee71b4b4827707ebd63c791b39d91
tree08621af5ef5d1262074efd7d227baa4cc3190a41
parentb2b9fc9fadb1afeae64357c76829a5afd9a0c758
vk/device: Emit PIPE_CONTROL flushes surrounding new STATE_BASE_ADDRESS

According to the bspec, you're supposed to emit a PIPE_CONTROL with a CS
stall and a render target flush prior to chainging STATE_BASE_ADDRESS.  A
little experimentation, however, shows that this is not enough.  It also
appears as if you have to flush the texture cache after chainging base
address or things won't propagate properly.
src/vulkan/device.c