[Mesa-dev] [PATCH] i915: fix implicit truncation from 'int' to bitfield

Matt Turner mattst88 at gmail.com
Mon Jul 11 14:23:53 UTC 2016


On Mon, Jul 11, 2016 at 6:31 AM, Francesco Ansanelli
<francians at gmail.com> wrote:
> ---
>  src/gallium/drivers/i915/i915_context.c |    6 +++---
>  src/gallium/drivers/i915/i915_flush.c   |    6 +++---

Please prefix patches to this directory "i915g: "

>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c
> index 82798bb..d7cdfd9 100644
> --- a/src/gallium/drivers/i915/i915_context.c
> +++ b/src/gallium/drivers/i915/i915_context.c
> @@ -216,9 +216,9 @@ i915_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
>
>     i915->dirty = ~0;
>     i915->hardware_dirty = ~0;
> -   i915->immediate_dirty = ~0;
> -   i915->dynamic_dirty = ~0;
> -   i915->static_dirty = ~0;
> +   i915->immediate_dirty |= ~0;
> +   i915->dynamic_dirty |= ~0;
> +   i915->static_dirty |= ~0;

What exactly is the warning you see? I'm having a difficult time
understanding how this could possibly help anything.


More information about the mesa-dev mailing list