summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-01-26 08:27:50 +0100
committerChad Versace <[email protected]>2013-01-28 13:51:10 -0800
commit1559994cba380a4e87a5e8dbb04b0a7475711756 (patch)
tree150f98c6554a6d86e961fe930b47a852a1564c35 /src/mesa
parent407029591c24edfd75970e8709f68b8e800ff50a (diff)
i965: Fix assignment instead of comparison in asserts.
Fixes side effect in assertion defects reported by Coverity. Note: This is a candidate for the 9.1 branch. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_emit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
index d9ed27cf0ab..45072da6a67 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
@@ -951,8 +951,8 @@ fs_generator::generate_pack_half_2x16_split(fs_inst *inst,
{
assert(intel->gen >= 7);
assert(dst.type == BRW_REGISTER_TYPE_UD);
- assert(x.type = BRW_REGISTER_TYPE_F);
- assert(y.type = BRW_REGISTER_TYPE_F);
+ assert(x.type == BRW_REGISTER_TYPE_F);
+ assert(y.type == BRW_REGISTER_TYPE_F);
/* From the Ivybridge PRM, Vol4, Part3, Section 6.27 f32to16:
*