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

Francesco Ansanelli francians at gmail.com
Mon Jul 11 13:31:44 UTC 2016


---
 src/gallium/drivers/i915/i915_context.c |    6 +++---
 src/gallium/drivers/i915/i915_flush.c   |    6 +++---
 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;
    i915->flush_dirty = 0;
 
    return &i915->base;
diff --git a/src/gallium/drivers/i915/i915_flush.c b/src/gallium/drivers/i915/i915_flush.c
index 6311c00..db05f97 100644
--- a/src/gallium/drivers/i915/i915_flush.c
+++ b/src/gallium/drivers/i915/i915_flush.c
@@ -81,9 +81,9 @@ void i915_flush(struct i915_context *i915,
    batch->iws->batchbuffer_flush(batch, fence, flags);
    i915->vbo_flushed = 1;
    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;
    /* kernel emits flushes in between batchbuffers */
    i915->flush_dirty = 0;
    i915->fired_vertices += i915->queued_vertices;
-- 
1.7.9.5



More information about the mesa-dev mailing list