From ea327dc451c1c8e46ff49a368c0d9c1485889fd3 Mon Sep 17 00:00:00 2001 From: Jakob Sinclair Date: Thu, 14 Apr 2016 18:07:40 +0200 Subject: [PATCH] gallium: Remove every double semi-colon Signed-off-by: Jakob Sinclair Reviewed-by: Ian Romanick Reviewed-by: Chad Versace --- src/gallium/drivers/freedreno/a3xx/fd3_emit.c | 2 +- src/gallium/drivers/ilo/ilo_resource.c | 2 +- src/gallium/drivers/ilo/shader/ilo_shader_gs.c | 2 +- src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp | 2 +- src/gallium/drivers/nouveau/nv30/nv30_vbo.c | 2 +- src/gallium/drivers/r600/r600_state_common.c | 2 +- src/gallium/drivers/swr/rasterizer/core/format_types.h | 8 ++++---- src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp | 6 +++--- src/gallium/winsys/amdgpu/drm/addrlib/core/addrobject.cpp | 2 +- src/gallium/winsys/amdgpu/drm/addrlib/r800/egbaddrlib.cpp | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c index 7d508e7397c..4470c2ac34e 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_emit.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_emit.c @@ -217,7 +217,7 @@ emit_textures(struct fd_context *ctx, struct fd_ringbuffer *ring, j = 1; } else { unsigned start = fd_sampler_first_level(&view->base); - unsigned end = fd_sampler_last_level(&view->base);; + unsigned end = fd_sampler_last_level(&view->base); for (j = 0; j < (end - start + 1); j++) { struct fd_resource_slice *slice = diff --git a/src/gallium/drivers/ilo/ilo_resource.c b/src/gallium/drivers/ilo/ilo_resource.c index 8c888c529c4..0afbfc69ee0 100644 --- a/src/gallium/drivers/ilo/ilo_resource.c +++ b/src/gallium/drivers/ilo/ilo_resource.c @@ -473,7 +473,7 @@ tex_init_image(struct ilo_texture *tex, struct ilo_screen *is = ilo_screen(tex->base.screen); const struct pipe_resource *templ = &tex->base; struct ilo_image *img = &tex->image; - struct intel_bo *imported_bo = NULL;; + struct intel_bo *imported_bo = NULL; struct ilo_image_info info; tex->image_format = resource_get_image_format(templ, diff --git a/src/gallium/drivers/ilo/shader/ilo_shader_gs.c b/src/gallium/drivers/ilo/shader/ilo_shader_gs.c index aeeb1778375..92f5da109a9 100644 --- a/src/gallium/drivers/ilo/shader/ilo_shader_gs.c +++ b/src/gallium/drivers/ilo/shader/ilo_shader_gs.c @@ -1375,7 +1375,7 @@ ilo_shader_compile_gs(const struct ilo_shader_state *state, toy_tgsi_cleanup(&gcc.tgsi); toy_compiler_cleanup(&gcc.tc); - return gcc.shader;; + return gcc.shader; } static bool diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp index 9ea1065b806..3d25ad928ef 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_ssa.cpp @@ -169,7 +169,7 @@ void DominatorTree::build() do { p = 0; for (v = 1; v < count; ++v) { - nw = &BasicBlock::get(vert[DOM(v)])->dom;; + nw = &BasicBlock::get(vert[DOM(v)])->dom; nv = &BasicBlock::get(vert[v])->dom; if (nw->getGraph() && !nv->getGraph()) { ++p; diff --git a/src/gallium/drivers/nouveau/nv30/nv30_vbo.c b/src/gallium/drivers/nouveau/nv30/nv30_vbo.c index dec3a0bb856..bc9b9a16ea8 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_vbo.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_vbo.c @@ -445,7 +445,7 @@ nv30_draw_elements_inline_u32_short(struct nouveau_pushbuf *push, count >>= 1; while (count) { - unsigned npush = MIN2(count, NV04_PFIFO_MAX_PACKET_LEN);; + unsigned npush = MIN2(count, NV04_PFIFO_MAX_PACKET_LEN); count -= npush; BEGIN_NI04(push, NV30_3D(VB_ELEMENT_U16), npush); diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index e8ec20f9459..2ab9f92eb8b 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -1125,7 +1125,7 @@ static void r600_set_sample_mask(struct pipe_context *pipe, unsigned sample_mask static void r600_update_driver_const_buffers(struct r600_context *rctx) { - int sh, size;; + int sh, size; void *ptr; struct pipe_constant_buffer cb; for (sh = 0; sh < PIPE_SHADER_TYPES; sh++) { diff --git a/src/gallium/drivers/swr/rasterizer/core/format_types.h b/src/gallium/drivers/swr/rasterizer/core/format_types.h index 9acf846a7f0..bffb9cc58f7 100644 --- a/src/gallium/drivers/swr/rasterizer/core/format_types.h +++ b/src/gallium/drivers/swr/rasterizer/core/format_types.h @@ -1061,13 +1061,13 @@ struct ComponentTraits switch (comp) { case 0: - return TypeTraits::convertSrgb(in);; + return TypeTraits::convertSrgb(in); case 1: - return TypeTraits::convertSrgb(in);; + return TypeTraits::convertSrgb(in); case 2: - return TypeTraits::convertSrgb(in);; + return TypeTraits::convertSrgb(in); case 3: - return TypeTraits::convertSrgb(in);; + return TypeTraits::convertSrgb(in); } SWR_ASSERT(0); return TypeTraits::convertSrgb(in); diff --git a/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp b/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp index 419f28b6fcc..706b033d460 100644 --- a/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp +++ b/src/gallium/drivers/swr/rasterizer/memory/StoreTile.cpp @@ -753,7 +753,7 @@ struct OptStoreRasterTile< TilingTraits, SrcFormat, DstFormat ConvertPixelsSOAtoAOS::Convert(pSrc, ppRows); ppRows[0] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2; - ppRows[1] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2;; + ppRows[1] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2; pSrc += SRC_BYTES_PER_PIXEL * KNOB_SIMD_WIDTH; } @@ -806,7 +806,7 @@ struct OptStoreRasterTile< TilingTraits, SrcFormat, DstFormat ConvertPixelsSOAtoAOS::Convert(pSrc, ppRows); ppRows[0] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2; - ppRows[1] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2;; + ppRows[1] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2; pSrc += SRC_BYTES_PER_PIXEL * KNOB_SIMD_WIDTH; } @@ -859,7 +859,7 @@ struct OptStoreRasterTile< TilingTraits, SrcFormat, DstFormat ConvertPixelsSOAtoAOS::Convert(pSrc, ppRows); ppRows[0] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2; - ppRows[1] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2;; + ppRows[1] += KNOB_SIMD_WIDTH * DST_BYTES_PER_PIXEL / 2; pSrc += SRC_BYTES_PER_PIXEL * KNOB_SIMD_WIDTH; } diff --git a/src/gallium/winsys/amdgpu/drm/addrlib/core/addrobject.cpp b/src/gallium/winsys/amdgpu/drm/addrlib/core/addrobject.cpp index 863a252fcf1..369be8c3046 100644 --- a/src/gallium/winsys/amdgpu/drm/addrlib/core/addrobject.cpp +++ b/src/gallium/winsys/amdgpu/drm/addrlib/core/addrobject.cpp @@ -115,7 +115,7 @@ VOID* AddrObject::ClientAlloc( VOID* AddrObject::AddrMalloc( size_t objSize) const ///< [in] Size to allocate { - return ClientAlloc(objSize, &m_client);; + return ClientAlloc(objSize, &m_client); } /** diff --git a/src/gallium/winsys/amdgpu/drm/addrlib/r800/egbaddrlib.cpp b/src/gallium/winsys/amdgpu/drm/addrlib/r800/egbaddrlib.cpp index 088b64593ba..e53479839e1 100644 --- a/src/gallium/winsys/amdgpu/drm/addrlib/r800/egbaddrlib.cpp +++ b/src/gallium/winsys/amdgpu/drm/addrlib/r800/egbaddrlib.cpp @@ -3374,7 +3374,7 @@ UINT_64 EgBasedAddrLib::ComputeFmaskAddrFromCoordMicroTiled( // if (!resolved) { - effectiveSamples = ComputeFmaskNumPlanesFromNumSamples(numSamples);; + effectiveSamples = ComputeFmaskNumPlanesFromNumSamples(numSamples); effectiveBpp = numSamples; // -- 2.30.2