diff options
author | Jason Ekstrand <[email protected]> | 2016-06-23 15:32:57 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-17 14:46:22 -0700 |
commit | ffeb5f67ac46ec53d3c960d883e45d95080f0cf8 (patch) | |
tree | 70dad281daf54fef5ed7ed9812534eda849367bc /src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | |
parent | 1666d029aa3c7dc3fc4337c1ef583553a0e217c6 (diff) |
i965/blorp/clear: Initialize surface info after allocating an MCS
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp_clear.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_blorp_clear.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp index 1bc0dbbe756..1e00719ff84 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp +++ b/src/mesa/drivers/dri/i965/brw_blorp_clear.cpp @@ -135,12 +135,6 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, if (!encode_srgb && _mesa_get_format_color_encoding(format) == GL_SRGB) format = _mesa_get_srgb_format_linear(format); - brw_blorp_surface_info_init(brw, ¶ms.dst, irb->mt, irb->mt_level, - layer, format, true); - - /* Override the surface format according to the context's sRGB rules. */ - params.dst.brw_surfaceformat = brw->render_target_format[format]; - params.x0 = fb->_Xmin; params.x1 = fb->_Xmax; if (rb->Name != 0) { @@ -218,6 +212,12 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, } } + brw_blorp_surface_info_init(brw, ¶ms.dst, irb->mt, irb->mt_level, + layer, format, true); + + /* Override the surface format according to the context's sRGB rules. */ + params.dst.brw_surfaceformat = brw->render_target_format[format]; + const char *clear_type; if (is_fast_clear) clear_type = "fast"; |