anv/batch: Move last_ss_pool_bo_offset to the command buffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 7 Nov 2016 16:07:43 +0000 (08:07 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 Nov 2016 19:31:10 +0000 (11:31 -0800)
commit595400d57745fba198b42d95f3c4f5d855023c33
tree8e3953d38208edd658eeac056a17ff793f6f02f2
parent0fe68294275a4ab1d9f71bb48d21a5e6b830e1ca
anv/batch: Move last_ss_pool_bo_offset to the command buffer

The original reason for putting it in the batch_bo was to allow primaries
to share it across secondaries or something like that.  However, the
relocation lists in secondary command buffers are are always left alone and
copied into the primary command buffer's relocation list.  This means that
the offset really applies at the command buffer level and putting it in the
batch_bo doesn't make sense.  This fixes a couple of potential bugs around
re-submission of command buffers that are not likely to be hit but are bugs
none the less.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_private.h