From 61c4702489fa1694892c5ce90ccf65a5094df3e7 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 15 Apr 2015 14:13:58 -0700 Subject: i965: Remove the context field from brw_compiler Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_sf_emit.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/dri/i965/brw_sf_emit.c') diff --git a/src/mesa/drivers/dri/i965/brw_sf_emit.c b/src/mesa/drivers/dri/i965/brw_sf_emit.c index a16303b88bc..31ec69c7a7a 100644 --- a/src/mesa/drivers/dri/i965/brw_sf_emit.c +++ b/src/mesa/drivers/dri/i965/brw_sf_emit.c @@ -192,7 +192,6 @@ static int count_flatshaded_attributes(struct brw_sf_compile *c) static void do_flatshade_triangle( struct brw_sf_compile *c ) { struct brw_compile *p = &c->func; - struct brw_context *brw = p->brw; GLuint nr; GLuint jmpi = 1; @@ -201,7 +200,7 @@ static void do_flatshade_triangle( struct brw_sf_compile *c ) if (c->key.primitive == SF_UNFILLED_TRIS) return; - if (brw->gen == 5) + if (p->devinfo->gen == 5) jmpi = 2; nr = count_flatshaded_attributes(c); @@ -225,7 +224,6 @@ static void do_flatshade_triangle( struct brw_sf_compile *c ) static void do_flatshade_line( struct brw_sf_compile *c ) { struct brw_compile *p = &c->func; - struct brw_context *brw = p->brw; GLuint nr; GLuint jmpi = 1; @@ -234,7 +232,7 @@ static void do_flatshade_line( struct brw_sf_compile *c ) if (c->key.primitive == SF_UNFILLED_TRIS) return; - if (brw->gen == 5) + if (p->devinfo->gen == 5) jmpi = 2; nr = count_flatshaded_attributes(c); -- cgit v1.2.3