summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_blorp.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-08-30 18:01:27 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-09-12 19:42:57 -0700
commitc70be1ead52b7a51819dc37220111bb0505610a7 (patch)
treeb4bbb06cc1d558cffe9caad48a8fe3ef959a6ede /src/mesa/drivers/dri/i965/brw_blorp.c
parentea1399aba07bfef728f43857643377c5842c1978 (diff)
downloadexternal_mesa3d-c70be1ead52b7a51819dc37220111bb0505610a7.zip
external_mesa3d-c70be1ead52b7a51819dc37220111bb0505610a7.tar.gz
external_mesa3d-c70be1ead52b7a51819dc37220111bb0505610a7.tar.bz2
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 <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_blorp.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c6
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 cc17c98..38938d4 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);