diff options
author | Chia-I Wu <[email protected]> | 2013-05-02 16:25:15 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2013-05-04 17:32:10 +0800 |
commit | 8c347d4e5762b41320a80acf474284b5c096fd0d (patch) | |
tree | ae5703d362978adaeff35ebc28704ec1b935baf2 /src/gallium/drivers/radeonsi | |
parent | cbf3462c35445e8728ec6d58ed264e16705c1254 (diff) |
gallium: fix type of flags in pipe_context::flush()
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
[olv: document the parameter now that the type is unsigned]
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 8a072fda89e..4f4c1448056 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -161,7 +161,7 @@ void radeonsi_flush(struct pipe_context *ctx, struct pipe_fence_handle **fence, static void r600_flush_from_st(struct pipe_context *ctx, struct pipe_fence_handle **fence, - enum pipe_flush_flags flags) + unsigned flags) { radeonsi_flush(ctx, fence, flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0); |