intel/blorp: Add a flag to make blorp not re-emit dept/stencil buffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 8 Oct 2016 00:20:00 +0000 (17:20 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 14 Oct 2016 22:39:41 +0000 (15:39 -0700)
commitd80c0307eaa91a609f71651fb52122849d35b5ac
treeb8045a5b524c6c9427033d8bc28722488559cc4d
parent0cabf93b80d03ea923cf507218024953b9d0254c
intel/blorp: Add a flag to make blorp not re-emit dept/stencil buffers

In Vulkan, we want to be able to use blorp to perform clears inside of a
render pass.  If blorp stomps the depth/stencil buffers packets then we'll
have to re-emit them.  This gets tricky when secondary command buffers get
involved.  Instead, we'll simply guarantee that the depth and stencil
buffers we pass to blorp (if any) match those already set in the hardware.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/blorp/blorp.c
src/intel/blorp/blorp.h
src/intel/blorp/blorp_genX_exec.h
src/intel/vulkan/anv_blorp.c
src/mesa/drivers/dri/i965/brw_blorp.c