summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-03-23 00:24:52 -0700
committerVinson Lee <[email protected]>2013-03-24 14:49:22 -0700
commit7d0c1f243754ebe48eef4ece17166ee18e03044d (patch)
tree91493be30144d2c1bdca69d8b93ae1b8a486db9e /src/gallium/drivers/llvmpipe
parenta593a1b2768a0d95765d2f86f1cbf69e490449ff (diff)
llvmpipe: Fix assertions with assignment instead of comparison.
Fixes assign instead of compare defects reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 953a5c1aa44..b87e1a44152 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -1156,7 +1156,7 @@ convert_to_blend_type(struct gallivm_state *gallivm,
*/
assert(src_type.width == 32);
assert(dst_type.floating);
- assert(dst_type.width = 32);
+ assert(dst_type.width == 32);
assert(dst_type.length % 4 == 0);
for (i = 0; i < 4; i++) {
tmpsrc[i] = src[i];
@@ -1300,7 +1300,7 @@ convert_from_blend_type(struct gallivm_state *gallivm,
* conversion/packing.
*/
assert(src_type.floating);
- assert(src_type.width = 32);
+ assert(src_type.width == 32);
assert(src_type.length % 4 == 0);
assert(dst_type.width == 32);
for (i = 0; i < num_srcs / 4; i++) {