diff options
author | Jason Ekstrand <[email protected]> | 2016-08-30 18:01:27 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-09-12 19:42:57 -0700 |
commit | c70be1ead52b7a51819dc37220111bb0505610a7 (patch) | |
tree | b4bbb06cc1d558cffe9caad48a8fe3ef959a6ede /src/mesa/drivers | |
parent | ea1399aba07bfef728f43857643377c5842c1978 (diff) |
intel/blorp: Add a swizzle parameter to blorp_clear
While we're here, we also re-arrange the parameters to better match the
parameter order of blorp_blit.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-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 cc17c98d498..38938d47cc6 100644 --- a/src/mesa/drivers/dri/i965/brw_blorp.c +++ b/src/mesa/drivers/dri/i965/brw_blorp.c @@ -781,9 +781,11 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb, struct blorp_batch batch; blorp_batch_init(&brw->blorp, &batch, brw); - blorp_clear(&batch, &surf, level, irb->mt_layer, num_layers, - x0, y0, x1, y1, + blorp_clear(&batch, &surf, (enum isl_format)brw->render_target_format[format], + ISL_SWIZZLE_IDENTITY, + level, irb->mt_layer, num_layers, + x0, y0, x1, y1, clear_color, color_write_disable); blorp_batch_finish(&batch); |