From 8c347d4e5762b41320a80acf474284b5c096fd0d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 2 May 2013 16:25:15 +0800 Subject: gallium: fix type of flags in pipe_context::flush() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] v2: replace all occurrences of enum pipe_flush_flags by unsigned Signed-off-by: Chia-I Wu Reviewed-by: Marek Olšák [olv: document the parameter now that the type is unsigned] --- src/gallium/drivers/r600/r600_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/r600') diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index daadaeb25d8..50fe77b56a8 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -183,7 +183,7 @@ static void r600_flush(struct pipe_context *ctx, unsigned flags) static void r600_flush_from_st(struct pipe_context *ctx, struct pipe_fence_handle **fence, - enum pipe_flush_flags flags) + unsigned flags) { struct r600_context *rctx = (struct r600_context *)ctx; struct r600_fence **rfence = (struct r600_fence**)fence; -- cgit v1.2.3