[Mesa-dev] [PATCH] gallium: fix type of flags in pipe_context::flush()

Chia-I Wu olvaffe at gmail.com
Thu May 2 21:58:57 PDT 2013


It should be unsigned, not enum pipe_flush_flags.

Fixed a build error:

  src/gallium/state_trackers/egl/android/native_android.cpp:426:29: error:
  invalid conversion from 'int' to 'pipe_flush_flags' [-fpermissive]

Signed-off-by: Chia-I Wu <olvaffe at gmail.com>
---
 src/gallium/include/pipe/p_context.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index da1f5a8..b9b5f3e 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -352,7 +352,7 @@ struct pipe_context {
     */
    void (*flush)(struct pipe_context *pipe,
                  struct pipe_fence_handle **fence,
-                 enum pipe_flush_flags flags);
+                 unsigned flags);
 
    /**
     * Create a view on a texture to be used by a shader stage.
-- 
1.7.10.4



More information about the mesa-dev mailing list