summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2016-08-26 18:44:18 +0300
committerTopi Pohjolainen <[email protected]>2016-09-12 11:48:29 +0300
commita1c7de09dc2b00cc990903ebee52228315e5d4e5 (patch)
tree5aa435c94653b8efa7eb9e0ffa08db2b5064889c /src/mesa
parent514afdce95e1c75a754412203425a8ac1282cd2d (diff)
intel/blorp: Add plumbing for setting color clear layer count
Signed-off-by: Topi Pohjolainen <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index fdaf4293c19..dc2be1e72e0 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -735,9 +735,9 @@ do_single_blorp_clear(struct brw_context *brw, struct gl_framebuffer *fb,
struct blorp_batch batch;
blorp_batch_init(&brw->blorp, &batch, brw);
- blorp_fast_clear(&batch, &surf, level, layer,
+ blorp_fast_clear(&batch, &surf,
(enum isl_format)brw->render_target_format[format],
- x0, y0, x1, y1);
+ level, layer, 1, x0, y0, x1, y1);
blorp_batch_finish(&batch);
/* Now that the fast clear has occurred, put the buffer in
@@ -754,7 +754,7 @@ 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, layer, x0, y0, x1, y1,
+ blorp_clear(&batch, &surf, level, layer, 1, x0, y0, x1, y1,
(enum isl_format)brw->render_target_format[format],
clear_color, color_write_disable);
blorp_batch_finish(&batch);