diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2013-05-02 16:25:15 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2013-05-04 17:32:10 +0800 |
commit | 8c347d4e5762b41320a80acf474284b5c096fd0d (patch) | |
tree | ae5703d362978adaeff35ebc28704ec1b935baf2 /src/gallium/drivers/i915/i915_flush.c | |
parent | cbf3462c35445e8728ec6d58ed264e16705c1254 (diff) | |
download | external_mesa3d-8c347d4e5762b41320a80acf474284b5c096fd0d.zip external_mesa3d-8c347d4e5762b41320a80acf474284b5c096fd0d.tar.gz external_mesa3d-8c347d4e5762b41320a80acf474284b5c096fd0d.tar.bz2 |
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 <olvaffe@gmail.com>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
[olv: document the parameter now that the type is unsigned]
Diffstat (limited to 'src/gallium/drivers/i915/i915_flush.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_flush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915/i915_flush.c b/src/gallium/drivers/i915/i915_flush.c index 3db6ca1..0dca722 100644 --- a/src/gallium/drivers/i915/i915_flush.c +++ b/src/gallium/drivers/i915/i915_flush.c @@ -40,7 +40,7 @@ static void i915_flush_pipe( struct pipe_context *pipe, struct pipe_fence_handle **fence, - enum pipe_flush_flags flags ) + unsigned flags ) { struct i915_context *i915 = i915_context(pipe); enum i915_winsys_flush_flags winsys_flags = I915_FLUSH_ASYNC; @@ -71,7 +71,7 @@ void i915_init_flush_functions( struct i915_context *i915 ) */ void i915_flush(struct i915_context *i915, struct pipe_fence_handle **fence, - enum pipe_flush_flags flags) + unsigned flags) { struct i915_winsys_batchbuffer *batch = i915->batch; |