summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_clip_tri.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-04-15 14:13:58 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-04-22 16:00:32 -0700
commit61c4702489fa1694892c5ce90ccf65a5094df3e7 (patch)
treee065364f3e0261f0f0eea2041a3e258b4d0450b5 /src/mesa/drivers/dri/i965/brw_clip_tri.c
parent639314d40e78b5b56c3fc840b2f416e7fc519a4d (diff)
downloadexternal_mesa3d-61c4702489fa1694892c5ce90ccf65a5094df3e7.zip
external_mesa3d-61c4702489fa1694892c5ce90ccf65a5094df3e7.tar.gz
external_mesa3d-61c4702489fa1694892c5ce90ccf65a5094df3e7.tar.bz2
i965: Remove the context field from brw_compiler
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clip_tri.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_clip_tri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clip_tri.c b/src/mesa/drivers/dri/i965/brw_clip_tri.c
index d4babc9..ad5e588 100644
--- a/src/mesa/drivers/dri/i965/brw_clip_tri.c
+++ b/src/mesa/drivers/dri/i965/brw_clip_tri.c
@@ -50,7 +50,7 @@ static void release_tmps( struct brw_clip_compile *c )
void brw_clip_tri_alloc_regs( struct brw_clip_compile *c,
GLuint nr_verts )
{
- struct brw_context *brw = c->func.brw;
+ const struct brw_device_info *devinfo = c->func.devinfo;
GLuint i = 0,j;
/* Register usage is static, precompute here:
@@ -123,7 +123,7 @@ void brw_clip_tri_alloc_regs( struct brw_clip_compile *c,
c->reg.clipdistance_offset = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_W);
i++;
- if (brw->gen == 5) {
+ if (devinfo->gen == 5) {
c->reg.ff_sync = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD);
i++;
}