summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-11-24 21:25:53 -0800
committerEmil Velikov <emil.l.velikov@gmail.com>2015-12-12 19:39:00 +0000
commit359679cb339f47d28673b04271b2aa17355f02b1 (patch)
tree07b433187a6c454eac8315c1a7e92c57af2c700b
parentfcf6091521af3310a13a91918fec2290fadbdfdc (diff)
i965: Pass brw_context pointer, not gl_context pointer.
Fixes a warning introduced by commit dcadd855. (cherry picked from commit f1b7fefd4e7e3872cc0d43901b7ec643e1d115f9)
-rw-r--r--src/mesa/drivers/dri/i965/brw_meta_fast_clear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
index cd3503508f9..1b2ea425002 100644
--- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
@@ -494,7 +494,6 @@ fast_clear_attachments(struct brw_context *brw,
struct rect fast_clear_rect)
{
assert(brw->gen >= 9);
- struct gl_context *ctx = &brw->ctx;
brw_bind_rep_write_shader(brw, (float *) fast_clear_color);
@@ -511,7 +510,7 @@ fast_clear_attachments(struct brw_context *brw,
_mesa_meta_drawbuffers_from_bitfield(1 << index);
- brw_draw_rectlist(ctx, &fast_clear_rect, MAX2(1, fb->MaxNumLayers));
+ brw_draw_rectlist(brw, &fast_clear_rect, MAX2(1, fb->MaxNumLayers));
/* Now set the mcs we cleared to INTEL_FAST_CLEAR_STATE_CLEAR so we'll
* resolve them eventually.