i965: Pass brw_context pointer, not gl_context pointer.
authorMatt Turner <mattst88@gmail.com>
Wed, 25 Nov 2015 05:25:53 +0000 (21:25 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 25 Nov 2015 05:27:57 +0000 (21:27 -0800)
Fixes a warning introduced by commit dcadd855.

src/mesa/drivers/dri/i965/brw_meta_fast_clear.c

index cd3503508f99147e9df105dfe7f9935df525653a..1b2ea4250023f288871bfd9b02407930b6e10dca 100644 (file)
@@ -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.