anv: Use different BOs for different scratch sizes and stages
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Jun 2016 22:26:54 +0000 (15:26 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 22 Jun 2016 19:39:45 +0000 (12:39 -0700)
commitc2f2c8e407207c31c29aab5570d23cd6e98d287a
treead4cecf8a32a0293e0c63d1a5f91353f860d083f
parent45c0f60999587ed29a7a9b81f09950dd8f58fb49
anv: Use different BOs for different scratch sizes and stages

This solves a race condition where we can end up having different stages
stomp on each other because they're all trying to scratch in the same BO
but they have different views of its layout.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/gen7_pipeline.c
src/intel/vulkan/gen8_pipeline.c
src/intel/vulkan/genX_cmd_buffer.c
src/intel/vulkan/genX_pipeline.c