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:
Thomas H.P. Andersen
2021-12-22 02:08:08 +01:00
parent 107c63aee8
commit bc19893f5d
@@ -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 */