diff options
author | Jason Ekstrand <[email protected]> | 2016-07-25 14:09:14 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-17 14:46:22 -0700 |
commit | 376ce1d26ed744e94d10c762501668e7a18d01b4 (patch) | |
tree | bc8850649ea873606db75572c228fcdc482c6f72 | |
parent | 583f040fdab9f9cbd1b5e874cad820296d7a02a4 (diff) |
i965/blorp/clear: Move isl_surf setup higher in the function
Reviewed-by: Topi Pohjolainen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index 6c527f51633..81868c6364e 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -201,16 +201,6 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, is_fast_clear = true; } - if (is_fast_clear) { - memset(¶ms.wm_inputs, 0xff, 4*sizeof(float)); - params.fast_clear_op = GEN7_PS_RENDER_TARGET_FAST_CLEAR_ENABLE; - - brw_get_fast_clear_rect(brw, irb->mt, ¶ms.x0, ¶ms.y0, - ¶ms.x1, ¶ms.y1); - } - - brw_blorp_params_get_clear_kernel(brw, ¶ms, use_simd16_replicated_data); - intel_miptree_check_level_layer(irb->mt, irb->mt_level, layer); intel_miptree_used_for_rendering(irb->mt); @@ -222,6 +212,16 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, brw_blorp_to_isl_format(brw, format, true), true); + if (is_fast_clear) { + memset(¶ms.wm_inputs, 0xff, 4*sizeof(float)); + params.fast_clear_op = GEN7_PS_RENDER_TARGET_FAST_CLEAR_ENABLE; + + brw_get_fast_clear_rect(brw, irb->mt, ¶ms.x0, ¶ms.y0, + ¶ms.x1, ¶ms.y1); + } + + brw_blorp_params_get_clear_kernel(brw, ¶ms, use_simd16_replicated_data); + const char *clear_type; if (is_fast_clear) clear_type = "fast"; |