diff options
author | Ian Romanick <[email protected]> | 2015-11-02 12:41:28 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2015-11-24 11:36:05 -0800 |
commit | b7b4104a7fd6a206f1efbde8712e59952ba7776c (patch) | |
tree | 5dc480295963e9c4cbad940f8d0cf989bcece9a6 | |
parent | 236fb067a538991567fb48d679ee0a5bb2d6cd2e (diff) |
i965: Pass brw_context instead of gl_context to brw_draw_rectlist
Future patches will use the brw_context instead. Keeping this
non-functional change separate should make the function changes easier
to review.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Abdiel Janulgue <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
(cherry picked from commit dcadd855f14b0d3dcce04a16afdfed2d7159d4a8)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 9 |
1 files changed, 5 insertions, 4 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 499daba3b00..102598f9019 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c +++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c @@ -165,8 +165,9 @@ struct rect { }; static void -brw_draw_rectlist(struct gl_context *ctx, struct rect *rect, int num_instances) +brw_draw_rectlist(struct brw_context *brw, struct rect *rect, int num_instances) { + struct gl_context *ctx = &brw->ctx; int start = 0, count = 3; struct _mesa_prim prim; float verts[6]; @@ -664,7 +665,7 @@ brw_meta_fast_clear(struct brw_context *brw, struct gl_framebuffer *fb, _mesa_meta_drawbuffers_from_bitfield(fast_clear_buffers); brw_bind_rep_write_shader(brw, (float *) fast_clear_color); set_fast_clear_op(brw, GEN7_PS_RENDER_TARGET_FAST_CLEAR_ENABLE); - brw_draw_rectlist(ctx, &fast_clear_rect, layers); + brw_draw_rectlist(brw, &fast_clear_rect, layers); set_fast_clear_op(brw, 0); /* Now set the mcs we cleared to INTEL_FAST_CLEAR_STATE_CLEAR so we'll @@ -683,7 +684,7 @@ brw_meta_fast_clear(struct brw_context *brw, struct gl_framebuffer *fb, if (rep_clear_buffers) { _mesa_meta_drawbuffers_from_bitfield(rep_clear_buffers); brw_bind_rep_write_shader(brw, ctx->Color.ClearColor.f); - brw_draw_rectlist(ctx, &clear_rect, layers); + brw_draw_rectlist(brw, &clear_rect, layers); } bail_to_meta: @@ -788,7 +789,7 @@ brw_meta_resolve_color(struct brw_context *brw, mt->fast_clear_state = INTEL_FAST_CLEAR_STATE_RESOLVED; get_resolve_rect(brw, mt, &rect); - brw_draw_rectlist(ctx, &rect, 1); + brw_draw_rectlist(brw, &rect, 1); set_fast_clear_op(brw, 0); use_rectlist(brw, false); |