projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31d91f0
)
nir/spirv: fix MSVC warning in vtn_align_u32()
author
Brian Paul
<brianp@vmware.com>
Fri, 30 Mar 2018 17:06:50 +0000
(11:06 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 30 Mar 2018 20:33:33 +0000
(14:33 -0600)
Fixes warning that "negation of an unsigned value results in an
unsigned value".
Reviewed-by: Neil Roberts <nroberts@igalia.com>
src/compiler/spirv/vtn_private.h
patch
|
blob
|
history
diff --git
a/src/compiler/spirv/vtn_private.h
b/src/compiler/spirv/vtn_private.h
index d8a00f99b97e865052505ec92e37b09cec62cc6b..269de9222581774ef41aa2729a1ff937a8a7cf9f 100644
(file)
--- a/
src/compiler/spirv/vtn_private.h
+++ b/
src/compiler/spirv/vtn_private.h
@@
-732,7
+732,7
@@
void vtn_handle_decoration(struct vtn_builder *b, SpvOp opcode,
static inline uint32_t
vtn_align_u32(uint32_t v, uint32_t a)
{
- assert(a != 0 && a == (a & -
a
));
+ assert(a != 0 && a == (a & -
((int32_t) a)
));
return (v + a - 1) & ~(a - 1);
}