aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_eu.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-03-28 18:03:37 -0700
committerEric Anholt <[email protected]>2011-04-26 12:19:40 -0700
commit148a32e622c5b95a4dbd9a8776fddf85ef484147 (patch)
tree614ea25d275462a842a7588b16f1f81eb80dda4c /src/mesa/drivers/dri/i965/brw_eu.h
parent54990673a65b72fd222aeafc19f3a384ce597146 (diff)
i965/fs: Add support for math instructions in 16-wide mode.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h
index d535f51437a..4eb67d57a5a 100644
--- a/src/mesa/drivers/dri/i965/brw_eu.h
+++ b/src/mesa/drivers/dri/i965/brw_eu.h
@@ -293,6 +293,14 @@ static INLINE struct brw_reg retype( struct brw_reg reg,
return reg;
}
+static inline struct brw_reg
+sechalf(struct brw_reg reg)
+{
+ if (reg.vstride)
+ reg.nr++;
+ return reg;
+}
+
static INLINE struct brw_reg suboffset( struct brw_reg reg,
GLuint delta )
{