gallium: fix type of flags in pipe_context::flush()
authorChia-I Wu <olvaffe@gmail.com>
Thu, 2 May 2013 08:25:15 +0000 (16:25 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 4 May 2013 09:32:10 +0000 (17:32 +0800)
commit8c347d4e5762b41320a80acf474284b5c096fd0d
treeae5703d362978adaeff35ebc28704ec1b935baf2
parentcbf3462c35445e8728ec6d58ed264e16705c1254
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]
25 files changed:
src/gallium/drivers/freedreno/freedreno_context.c
src/gallium/drivers/galahad/glhd_context.c
src/gallium/drivers/i915/i915_batch.h
src/gallium/drivers/i915/i915_flush.c
src/gallium/drivers/identity/id_context.c
src/gallium/drivers/ilo/ilo_context.c
src/gallium/drivers/llvmpipe/lp_context.c
src/gallium/drivers/noop/noop_pipe.c
src/gallium/drivers/nv30/nv30_context.c
src/gallium/drivers/nv50/nv50_context.c
src/gallium/drivers/nvc0/nvc0_context.c
src/gallium/drivers/r300/r300_flush.c
src/gallium/drivers/r600/r600_pipe.c
src/gallium/drivers/radeonsi/radeonsi_pipe.c
src/gallium/drivers/rbug/rbug_context.c
src/gallium/drivers/softpipe/sp_flush.c
src/gallium/drivers/softpipe/sp_flush.h
src/gallium/drivers/svga/svga_pipe_flush.c
src/gallium/drivers/trace/tr_context.c
src/gallium/include/pipe/p_context.h
src/gallium/state_trackers/clover/core/queue.cpp
src/gallium/state_trackers/vega/vg_manager.c
src/mesa/state_tracker/st_cb_flush.c
src/mesa/state_tracker/st_cb_flush.h
src/mesa/state_tracker/st_manager.c