diff options
author | Jason Ekstrand <[email protected]> | 2017-06-23 17:43:47 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-07-22 20:59:22 -0700 |
commit | e8fca3ffde4aa3cbf131fb6cdb5bd29248685468 (patch) | |
tree | 4b7ba04cda01b58586e88320480f207670b18449 /src/mesa/drivers/dri | |
parent | 4185b982af32941e86fc77a4e866a6e78ea14454 (diff) |
i965/blorp: Use render_aux_usage for color clears
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c index ad236b6a397..f0d63389983 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -889,19 +889,10 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, DBG("%s (slow) to mt %p level %d layer %d+%d\n", __FUNCTION__, irb->mt, irb->mt_level, irb->mt_layer, num_layers); - enum isl_aux_usage aux_usage = - blorp_get_aux_usage(brw, irb->mt, - (1 << ISL_AUX_USAGE_MCS) | - (1 << ISL_AUX_USAGE_CCS_E) | - (1 << ISL_AUX_USAGE_CCS_D)); - intel_miptree_prepare_access(brw, irb->mt, level, 1, - irb->mt_layer, num_layers, - aux_usage != ISL_AUX_USAGE_NONE, - aux_usage != ISL_AUX_USAGE_NONE); - intel_miptree_finish_write(brw, irb->mt, level, - irb->mt_layer, num_layers, - aux_usage != ISL_AUX_USAGE_NONE); + intel_miptree_render_aux_usage(brw, irb->mt, encode_srgb); + intel_miptree_prepare_render(brw, irb->mt, level, irb->mt_layer, + num_layers, encode_srgb); struct isl_surf isl_tmp[2]; struct blorp_surf surf; @@ -920,6 +911,9 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, x0, y0, x1, y1, clear_color, color_write_disable); blorp_batch_finish(&batch); + + intel_miptree_finish_render(brw, irb->mt, level, + irb->mt_layer, num_layers, encode_srgb); } return; |