Module: Mesa Branch: main Commit: bc19893f5dd485c5f6a17c187cf41b7e4fd5f891 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bc19893f5dd485c5f6a17c187cf41b7e4fd5f891
Author: Thomas H.P. Andersen <[email protected]> Date: Wed Dec 22 02:08:08 2021 +0100 i915g: avoid left shifting a negative number Fixes a warning with clang Reviewed-by: Emma Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14289> --- src/gallium/drivers/i915/i915_fpc_translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 7e36f2f0736..690b4ef0900 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -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 */
