i915g: avoid left shifting a negative number
Fixes a warning with clang Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289>
This commit is contained in:
@@ -901,7 +901,7 @@ i915_init_compile(struct i915_context *i915, struct i915_fragment_shader *ifs)
|
||||
p->decl = p->declarations;
|
||||
p->decl_s = 0;
|
||||
p->decl_t = 0;
|
||||
p->temp_flag = ~0x0 << I915_MAX_TEMPORARY;
|
||||
p->temp_flag = ~0x0U << I915_MAX_TEMPORARY;
|
||||
p->utemp_flag = ~0x7;
|
||||
|
||||
/* initialize the first program word */
|
||||
|
||||
Reference in New Issue
Block a user