From d80c0307eaa91a609f71651fb52122849d35b5ac Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 7 Oct 2016 17:20:00 -0700 Subject: 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 Reviewed-by: Topi Pohjolainen --- src/intel/blorp/blorp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/intel/blorp/blorp.c') diff --git a/src/intel/blorp/blorp.c b/src/intel/blorp/blorp.c index 91513a0413a..08afffe06d1 100644 --- a/src/intel/blorp/blorp.c +++ b/src/intel/blorp/blorp.c @@ -45,10 +45,12 @@ blorp_finish(struct blorp_context *blorp) void blorp_batch_init(struct blorp_context *blorp, - struct blorp_batch *batch, void *driver_batch) + struct blorp_batch *batch, void *driver_batch, + enum blorp_batch_flags flags) { batch->blorp = blorp; batch->driver_batch = driver_batch; + batch->flags = flags; } void -- cgit v1.2.3