aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2015-03-18 15:24:06 +0200
committerFrancisco Jerez <[email protected]>2015-03-23 14:09:32 +0200
commit7e816c7feb8cffa878546eee363240b1b66d5c42 (patch)
tree6b1549da870a75bc1b71584763a03fe0866880a6 /src/mesa/drivers
parent7678fb9c639f25313f3ae2e2b539e424370d3ec6 (diff)
i965/vec4: Fix signedness of dst_reg::writemask.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_ir_vec4.h5
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ir_vec4.h b/src/mesa/drivers/dri/i965/brw_ir_vec4.h
index 8b26e487b72..2ac189b1043 100644
--- a/src/mesa/drivers/dri/i965/brw_ir_vec4.h
+++ b/src/mesa/drivers/dri/i965/brw_ir_vec4.h
@@ -111,7 +111,8 @@ public:
dst_reg();
dst_reg(register_file file, int reg);
- dst_reg(register_file file, int reg, const glsl_type *type, int writemask);
+ dst_reg(register_file file, int reg, const glsl_type *type,
+ unsigned writemask);
dst_reg(struct brw_reg reg);
dst_reg(class vec4_visitor *v, const struct glsl_type *type);
@@ -119,7 +120,7 @@ public:
bool equals(const dst_reg &r) const;
- int writemask; /**< Bitfield of WRITEMASK_[XYZW] */
+ unsigned writemask; /**< Bitfield of WRITEMASK_[XYZW] */
src_reg *reladdr;
};
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index b13dd58771b..ee3ac1578b3 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -195,7 +195,7 @@ dst_reg::dst_reg(register_file file, int reg)
}
dst_reg::dst_reg(register_file file, int reg, const glsl_type *type,
- int writemask)
+ unsigned writemask)
{
init();