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 <olva...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev