[Mesa-dev] [Pull Request]: Coccinelle cleanups
eocallaghan at alterapraxis.com
eocallaghan at alterapraxis.com
Sun Dec 6 05:40:23 PST 2015
The following changes since commit
7e43a280793af50e826fb6183670de8e3d427d74:
gallium/radeon*: Remove useless casts (2015-12-06 11:52:16 +0100)
are available in the git repository at:
https://github.com/victoredwardocallaghan/mesa-GLwork.git coccinelle
for you to fetch changes up to 4810d07a6134c1bdc943a80448d115e570d83f48:
gallium: Remove redundant NULL ptr checks (2015-12-07 00:15:08 +1100)
----------------------------------------------------------------
Edward O'Callaghan (10):
gallium/drivers/nouveau: Make use of ARRAY_SIZE macro
gallium/drivers/llvmpipe: Make use of ARRAY_SIZE macro
gallium/drivers/svga: Make use of ARRAY_SIZE macro
gallium/winsys: Make use of ARRAY_SIZE macro
gallium/aux../u_mm.c: Fix zero integer literal to pointer
comparison
gallium/drivers: Trivial code-style cleanup
gallium/auxiliary: Trivial code style cleanup
gallium/auxiliary: Sanitize NULL checks into canonical form
gallium/drivers: Sanitize NULL checks into canonical form
gallium: Remove redundant NULL ptr checks
src/gallium/auxiliary/cso_cache/cso_cache.c | 2 +-
src/gallium/auxiliary/cso_cache/cso_context.c | 4 +--
src/gallium/auxiliary/draw/draw_context.c | 2 +-
src/gallium/auxiliary/draw/draw_gs.c | 2 +-
src/gallium/auxiliary/draw/draw_llvm.c | 4 +--
src/gallium/auxiliary/draw/draw_llvm_sample.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_aaline.c | 21 ++++++-----
src/gallium/auxiliary/draw/draw_pipe_aapoint.c | 6 ++--
src/gallium/auxiliary/draw/draw_pipe_clip.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_cull.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_flatshade.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_offset.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_pstipple.c | 4 +--
src/gallium/auxiliary/draw/draw_pipe_stipple.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_twoside.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_unfilled.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_util.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_validate.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_vbuf.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_wide_line.c | 2 +-
src/gallium/auxiliary/draw/draw_pipe_wide_point.c | 2 +-
src/gallium/auxiliary/draw/draw_pt.c | 2 +-
src/gallium/auxiliary/draw/draw_pt_fetch_emit.c | 2 +-
src/gallium/auxiliary/draw/draw_vs.c | 2 +-
src/gallium/auxiliary/draw/draw_vs_exec.c | 2 +-
src/gallium/auxiliary/draw/draw_vs_llvm.c | 2 +-
src/gallium/auxiliary/draw/draw_vs_variant.c | 2 +-
src/gallium/auxiliary/gallivm/lp_bld_arit.c | 16 ++++-----
src/gallium/auxiliary/gallivm/lp_bld_const.c | 2 +-
src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c | 6 ++--
src/gallium/auxiliary/pipebuffer/pb_buffer.h | 12 +++----
.../auxiliary/pipebuffer/pb_buffer_fenced.c | 12 +++----
.../auxiliary/pipebuffer/pb_buffer_malloc.c | 2 +-
src/gallium/auxiliary/pipebuffer/pb_bufmgr_alt.c | 2 +-
src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c | 6 ++--
src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c | 20 +++++------
src/gallium/auxiliary/pipebuffer/pb_bufmgr_mm.c | 4 +--
.../auxiliary/pipebuffer/pb_bufmgr_ondemand.c | 8 ++---
src/gallium/auxiliary/pipebuffer/pb_bufmgr_pool.c | 2 +-
src/gallium/auxiliary/pipebuffer/pb_bufmgr_slab.c | 2 +-
src/gallium/auxiliary/pipebuffer/pb_validate.c | 6 ++--
src/gallium/auxiliary/postprocess/pp_init.c | 2 +-
src/gallium/auxiliary/postprocess/pp_mlaa.c | 2 +-
src/gallium/auxiliary/postprocess/pp_run.c | 2 +-
src/gallium/auxiliary/tgsi/tgsi_sanity.c | 2 +-
src/gallium/auxiliary/tgsi/tgsi_ureg.c | 6 ++--
src/gallium/auxiliary/translate/translate_cache.c | 2 +-
.../auxiliary/translate/translate_generic.c | 2 +-
src/gallium/auxiliary/translate/translate_sse.c | 2 +-
src/gallium/auxiliary/util/u_bitmask.c | 4 +--
src/gallium/auxiliary/util/u_cache.c | 2 +-
src/gallium/auxiliary/util/u_debug.c | 10 +++---
src/gallium/auxiliary/util/u_debug_memory.c | 10 +++---
src/gallium/auxiliary/util/u_debug_refcnt.c | 2 +-
src/gallium/auxiliary/util/u_draw_quad.c | 2 +-
src/gallium/auxiliary/util/u_dump_state.c | 34
+++++++++---------
src/gallium/auxiliary/util/u_handle_table.c | 10 +++---
src/gallium/auxiliary/util/u_hash_table.c | 8 ++---
src/gallium/auxiliary/util/u_inlines.h | 2 +-
src/gallium/auxiliary/util/u_mm.c | 2 +-
src/gallium/auxiliary/util/u_ringbuffer.c | 2 +-
src/gallium/auxiliary/util/u_simple_shaders.c | 16 ++++-----
src/gallium/auxiliary/util/u_surfaces.c | 4 +--
src/gallium/auxiliary/util/u_transfer.c | 2 +-
src/gallium/auxiliary/util/u_upload_mgr.c | 2 +-
src/gallium/auxiliary/vl/vl_mpeg12_decoder.c | 2 +-
src/gallium/drivers/i915/i915_context.c | 2 +-
src/gallium/drivers/i915/i915_prim_vbuf.c | 4 +--
src/gallium/drivers/i915/i915_resource_buffer.c | 2 +-
src/gallium/drivers/i915/i915_resource_texture.c | 4 +--
src/gallium/drivers/llvmpipe/lp_scene.c | 2 +-
src/gallium/drivers/llvmpipe/lp_scene_queue.c | 2 +-
src/gallium/drivers/llvmpipe/lp_setup_tri.c | 2 +-
src/gallium/drivers/llvmpipe/lp_state_blend.c | 4 +--
src/gallium/drivers/llvmpipe/lp_state_fs.c | 2 +-
src/gallium/drivers/llvmpipe/lp_state_gs.c | 2 +-
src/gallium/drivers/llvmpipe/lp_state_rasterizer.c | 2 +-
src/gallium/drivers/llvmpipe/lp_state_setup.c | 2 +-
src/gallium/drivers/llvmpipe/lp_state_vs.c | 2 +-
src/gallium/drivers/llvmpipe/lp_test_blend.c | 6 ++--
src/gallium/drivers/llvmpipe/lp_test_conv.c | 2 +-
src/gallium/drivers/llvmpipe/lp_test_main.c | 4 +--
src/gallium/drivers/llvmpipe/lp_tex_sample.c | 2 +-
src/gallium/drivers/llvmpipe/lp_texture.c | 2 +-
src/gallium/drivers/noop/noop_pipe.c | 8 ++---
src/gallium/drivers/noop/noop_state.c | 16 ++++-----
src/gallium/drivers/nouveau/nouveau_compiler.c | 2 +-
src/gallium/drivers/nouveau/nv30/nv30_transfer.c | 2 +-
src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c | 2 +-
src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c | 2 +-
src/gallium/drivers/nouveau/nv50/nv50_state.c | 6 ++--
.../drivers/nouveau/nv50/nv50_state_validate.c | 3 +-
src/gallium/drivers/nouveau/nv50/nv84_video_bsp.c | 2 +-
src/gallium/drivers/nouveau/nv50/nv84_video_vp.c | 10 +++---
src/gallium/drivers/nouveau/nv50/nv98_video_bsp.c | 2 +-
src/gallium/drivers/nouveau/nv50/nv98_video_ppp.c | 2 +-
src/gallium/drivers/nouveau/nv50/nv98_video_vp.c | 2 +-
src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 2 +-
src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 6 ++--
.../drivers/nouveau/nvc0/nvc0_state_validate.c | 3 +-
src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c | 2 +-
src/gallium/drivers/nouveau/nvc0/nvc0_video_ppp.c | 2 +-
src/gallium/drivers/nouveau/nvc0/nvc0_video_vp.c | 2 +-
src/gallium/drivers/r300/compiler/r3xx_vertprog.c | 2 +-
src/gallium/drivers/r300/r300_screen_buffer.c | 2 +-
src/gallium/drivers/r300/r300_state.c | 6 ++--
src/gallium/drivers/r600/compute_memory_pool.c | 6 ++--
src/gallium/drivers/r600/evergreen_state.c | 8 ++---
src/gallium/drivers/r600/r600_asm.c | 20 +++++------
src/gallium/drivers/r600/r600_pipe.c | 6 ++--
src/gallium/drivers/r600/r600_state.c | 8 ++---
src/gallium/drivers/r600/r600_state_common.c | 6 ++--
src/gallium/drivers/radeon/r600_pipe_common.c | 2 +-
src/gallium/drivers/radeon/r600_query.c | 2 +-
src/gallium/drivers/radeon/r600_texture.c | 8 ++---
src/gallium/drivers/radeonsi/si_descriptors.c | 2 +-
src/gallium/drivers/radeonsi/si_pipe.c | 6 ++--
src/gallium/drivers/radeonsi/si_pm4.c | 2 +-
src/gallium/drivers/radeonsi/si_state.c | 16 ++++-----
src/gallium/drivers/radeonsi/si_state_shaders.c | 12 +++----
src/gallium/drivers/rbug/rbug_objects.c | 12 +++----
src/gallium/drivers/softpipe/sp_state_shader.c | 4 +--
src/gallium/drivers/softpipe/sp_texture.c | 2 +-
src/gallium/drivers/svga/svga_cmd.c | 6 ++--
src/gallium/drivers/svga/svga_context.c | 4 +--
src/gallium/drivers/svga/svga_draw.c | 8 ++---
src/gallium/drivers/svga/svga_draw_arrays.c | 4 +--
src/gallium/drivers/svga/svga_draw_elements.c | 6 ++--
src/gallium/drivers/svga/svga_pipe_clear.c | 4 +--
src/gallium/drivers/svga/svga_pipe_query.c | 10 +++---
src/gallium/drivers/svga/svga_pipe_streamout.c | 2 +-
src/gallium/drivers/svga/svga_resource_buffer.c | 2 +-
src/gallium/drivers/svga/svga_resource_texture.c | 2 +-
src/gallium/drivers/svga/svga_state_constants.c | 8 ++---
src/gallium/drivers/svga/svga_state_framebuffer.c | 2 +-
src/gallium/drivers/svga/svga_state_gs.c | 6 ++--
.../drivers/svga/svga_state_tgsi_transform.c | 12 +++----
src/gallium/drivers/svga/svga_state_tss.c | 2 +-
src/gallium/drivers/svga/svga_surface.c | 2 +-
src/gallium/drivers/svga/svga_tgsi.c | 4 +--
src/gallium/drivers/svga/svga_tgsi_vgpu10.c | 2 +-
src/gallium/drivers/svga/svgadump/svga_shader_op.c | 2 +-
src/gallium/drivers/trace/tr_context.c | 10 +++---
src/gallium/drivers/trace/tr_dump.c | 8 ++---
src/gallium/drivers/trace/tr_dump_state.c | 42
+++++++++++-----------
src/gallium/drivers/trace/tr_screen.c | 2 +-
src/gallium/drivers/trace/tr_texture.c | 12 +++----
src/gallium/drivers/trace/tr_texture.h | 6 ++--
src/gallium/drivers/vc4/vc4_context.c | 2 +-
src/gallium/drivers/virgl/virgl_buffer.c | 2 +-
src/gallium/drivers/virgl/virgl_context.c | 4 +--
src/gallium/drivers/virgl/virgl_texture.c | 2 +-
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c | 6 ++--
153 files changed, 375 insertions(+), 382 deletions(-)
More information about the mesa-dev
mailing list