mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 06:10:36 +01:00
llvmpipe: Fix assertions with assignment instead of comparison.
Fixes assign instead of compare defects reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
a593a1b276
commit
7d0c1f2437
1 changed files with 2 additions and 2 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue