diff options
author | Nanley Chery <nanley.g.chery@intel.com> | 2018-04-26 17:13:36 -0700 |
---|---|---|
committer | Nanley Chery <nanley.g.chery@intel.com> | 2018-05-17 07:06:42 -0700 |
commit | edfb57c0a0adacad4ccb42a49c19c14314a09565 (patch) | |
tree | 999e9c7b152cdf3719f288c1afd73fa120638c32 | |
parent | 02f5512fed2e6fc2b92a32623fb979117d41239b (diff) |
i965/blorp: Disable BLORP clear color updates
With the previous patches, we now update the indirect clear color buffer
every time the clear color changes. Avoid redundant updates.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index 9d57745cc5..636591c0b7 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -1261,7 +1261,8 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, brw_emit_end_of_pipe_sync(brw, PIPE_CONTROL_RENDER_TARGET_FLUSH); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw, 0); + blorp_batch_init(&brw->blorp, &batch, brw, + BLORP_BATCH_NO_UPDATE_CLEAR_COLOR); blorp_fast_clear(&batch, &surf, isl_format, level, irb->mt_layer, num_layers, x0, y0, x1, y1); @@ -1615,7 +1616,8 @@ intel_hiz_exec(struct brw_context *brw, struct intel_mipmap_tree *mt, &level, start_layer, num_layers, isl_tmp); struct blorp_batch batch; - blorp_batch_init(&brw->blorp, &batch, brw, 0); + blorp_batch_init(&brw->blorp, &batch, brw, + BLORP_BATCH_NO_UPDATE_CLEAR_COLOR); blorp_hiz_op(&batch, &surf, level, start_layer, num_layers, op); blorp_batch_finish(&batch); |