diff options
author | Jason Ekstrand <[email protected]> | 2016-10-07 17:20:00 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-10-14 15:39:41 -0700 |
commit | d80c0307eaa91a609f71651fb52122849d35b5ac (patch) | |
tree | b8045a5b524c6c9427033d8bc28722488559cc4d /src/mesa | |
parent | 0cabf93b80d03ea923cf507218024953b9d0254c (diff) |
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 <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 23fe3aa3f9a..94845746d25 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -388,7 +388,7 @@ brw_blorp_blit_miptrees(struct brw_context *brw, }; struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw); + blorp_batch_init(&brw->blorp, &batch, brw, 0); blorp_blit(&batch, &src_surf, src_level, physical_to_logical_layer(src_mt, src_layer), brw_blorp_to_isl_format(brw, src_format, false), src_isl_swizzle, @@ -447,7 +447,7 @@ brw_blorp_copy_miptrees(struct brw_context *brw, &dst_level, &tmp_surfs[2]); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw); + blorp_batch_init(&brw->blorp, &batch, brw, 0); blorp_copy(&batch, &src_surf, src_level, src_layer, &dst_surf, dst_level, dst_layer, src_x, src_y, dst_x, dst_y, src_width, src_height); @@ -852,7 +852,7 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, irb->mt, irb->mt_level, irb->mt_layer, num_layers); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw); + blorp_batch_init(&brw->blorp, &batch, brw, 0); blorp_fast_clear(&batch, &surf, (enum isl_format)brw->render_target_format[format], level, irb_logical_mt_layer(irb), num_layers, @@ -872,7 +872,7 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, memcpy(clear_color.f32, ctx->Color.ClearColor.f, sizeof(float) * 4); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw); + blorp_batch_init(&brw->blorp, &batch, brw, 0); blorp_clear(&batch, &surf, (enum isl_format)brw->render_target_format[format], ISL_SWIZZLE_IDENTITY, @@ -944,7 +944,7 @@ brw_blorp_resolve_color(struct brw_context *brw, struct intel_mipmap_tree *mt) blorp_surf_for_miptree(brw, &surf, mt, true, &level, isl_tmp); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw); + blorp_batch_init(&brw->blorp, &batch, brw, 0); blorp_ccs_resolve(&batch, &surf, brw_blorp_to_isl_format(brw, format, true)); blorp_batch_finish(&batch); @@ -966,7 +966,7 @@ gen6_blorp_hiz_exec(struct brw_context *brw, struct intel_mipmap_tree *mt, blorp_surf_for_miptree(brw, &surf, mt, true, &level, isl_tmp); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw); + blorp_batch_init(&brw->blorp, &batch, brw, 0); blorp_gen6_hiz_op(&batch, &surf, level, layer, op); blorp_batch_finish(&batch); } |