Mesa (master): i965: silence unused variable
Module: Mesa Branch: master Commit: 3853f1c6f4b97edde22c767a80c137da6e39904a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3853f1c6f4b97edde22c767a80c137da6e39904a Author: Lionel Landwerlin Date: Wed May 9 16:40:37 2018 +0100 i965: silence unused variable Signed-off-by: Lionel Landwerlin Fixes: 2dc29e095f9da ("i965: Don't leak blorp on Gen4-5.") Reviewed-by: Caio Marcelo de Oliveira Filho --- src/mesa/drivers/dri/i965/brw_context.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index ec3fe3be40..bd1e20845f 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -1098,7 +1098,6 @@ intelDestroyContext(__DRIcontext * driContextPriv) struct brw_context *brw = (struct brw_context *) driContextPriv->driverPrivate; struct gl_context *ctx = &brw->ctx; - const struct gen_device_info *devinfo = &brw->screen->devinfo; _mesa_meta_free(&brw->ctx); ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit
Mesa (master): i965: Silence unused variable warning
Module: Mesa Branch: master Commit: 3a886721ed449be0c87ece972acada96cc0811b6 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a886721ed449be0c87ece972acada96cc0811b6 Author: Kenneth Graunke Date: Wed May 4 00:46:31 2016 -0700 i965: Silence unused variable warning I added this when deleting some unnecessary code in a rebase. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 18760dd..ce3e00b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1762,8 +1762,6 @@ fs_visitor::assign_tcs_single_patch_urb_setup() { assert(stage == MESA_SHADER_TESS_CTRL); - brw_vue_prog_data *vue_prog_data = (brw_vue_prog_data *) prog_data; - /* Rewrite all ATTR file references to HW_REGs. */ foreach_block_and_inst(block, fs_inst, inst, cfg) { convert_attr_sources_to_hw_regs(inst); ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit
Mesa (master): i965: Silence unused variable warning.
Module: Mesa Branch: master Commit: 76f27a6b035630574f275af3484f5d29753bb102 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=76f27a6b035630574f275af3484f5d29753bb102 Author: Matt Turner Date: Thu Oct 23 15:45:35 2014 -0700 i965: Silence unused variable warning. --- src/mesa/drivers/dri/i965/intel_buffer_objects.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index b4eb076..a7242b0 100644 --- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c @@ -476,9 +476,8 @@ intel_bufferobj_flush_mapped_range(struct gl_context *ctx, { struct brw_context *brw = brw_context(ctx); struct intel_buffer_object *intel_obj = intel_buffer_object(obj); - GLbitfield access = obj->Mappings[index].AccessFlags; - assert(access & GL_MAP_FLUSH_EXPLICIT_BIT); + assert(obj->Mappings[index].AccessFlags & GL_MAP_FLUSH_EXPLICIT_BIT); /* If we gave a direct mapping of the buffer instead of using a temporary, * then there's nothing to do. ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit
Mesa (master): i965: Silence unused variable 'ctx' warning.
Module: Mesa Branch: master Commit: 80bf1fbaf6bb3d9b7a8543ea764c6d19887ac0b8 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=80bf1fbaf6bb3d9b7a8543ea764c6d19887ac0b8 Author: Kenneth Graunke Date: Fri Jan 31 21:40:05 2014 -0800 i965: Silence unused variable 'ctx' warning. Somehow I missed this before pushing the Broadwell PS state upload code. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen8_ps_state.c |1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen8_ps_state.c b/src/mesa/drivers/dri/i965/gen8_ps_state.c index ab83e41..b45da8f 100644 --- a/src/mesa/drivers/dri/i965/gen8_ps_state.c +++ b/src/mesa/drivers/dri/i965/gen8_ps_state.c @@ -29,7 +29,6 @@ static void upload_ps_extra(struct brw_context *brw) { - struct gl_context *ctx = &brw->ctx; /* BRW_NEW_FRAGMENT_PROGRAM */ const struct brw_fragment_program *fp = brw_fragment_program_const(brw->fragment_program); ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit
Mesa (master): i965: Silence unused variable warning in release build
Module: Mesa Branch: master Commit: 72b3c6c96f971fbaf438289e5e89ccf324a49ca7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=72b3c6c96f971fbaf438289e5e89ccf324a49ca7 Author: Chad Versace Date: Tue Aug 27 15:08:00 2013 -0700 i965: Silence unused variable warning in release build Use `(void) success;` to silence this warning: i965/brw_vs.c:481:12: warning: unused variable 'success' [-Wunused-variable] bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram, Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/i965/brw_vs.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 6a67bc4..79b4364 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -479,7 +479,7 @@ static void brw_upload_vs_prog(struct brw_context *brw) &brw->vs.prog_offset, &brw->vs.prog_data)) { bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram, vp, &key); - + (void) success; assert(success); } if (memcmp(&brw->vs.prog_data->base.vue_map, &brw->vue_map_geom_out, ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit
Mesa (master): i965: Silence unused variable warning on non-debug builds.
Module: Mesa Branch: master Commit: 5abd498c47e63ac4445360535b4591dbf6ea627a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5abd498c47e63ac4445360535b4591dbf6ea627a Author: Vinson Lee Date: Fri Oct 8 16:30:59 2010 -0700 i965: Silence unused variable warning on non-debug builds. Fixes this GCC warning. brw_vs.c: In function 'do_vs_prog': brw_vs.c:46: warning: unused variable 'ctx' --- src/mesa/drivers/dri/i965/brw_vs.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c index 9f90e1e..b0cfd4f 100644 --- a/src/mesa/drivers/dri/i965/brw_vs.c +++ b/src/mesa/drivers/dri/i965/brw_vs.c @@ -96,6 +96,7 @@ static void do_vs_prog( struct brw_context *brw, sizeof(c.prog_data)); assert(ctx->Const.VertexProgram.MaxNativeParameters == ARRAY_SIZE(c.constant_map)); + (void) ctx; aux_size = sizeof(c.prog_data); if (c.vp->use_const_buffer) ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit
Mesa (master): i965: Silence unused variable warning on non-debug builds.
Module: Mesa Branch: master Commit: 978ffa1d61902f0d55e15fbc51af75d444f35124 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=978ffa1d61902f0d55e15fbc51af75d444f35124 Author: Vinson Lee Date: Fri Oct 8 16:02:59 2010 -0700 i965: Silence unused variable warning on non-debug builds. Fixes this GCC warning. brw_eu_emit.c: In function 'brw_math2': brw_eu_emit.c:1189: warning: unused variable 'intel' --- src/mesa/drivers/dri/i965/brw_eu_emit.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 419b40b..8ebcfa3 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -1190,6 +1190,7 @@ void brw_math2(struct brw_compile *p, struct brw_instruction *insn = next_insn(p, BRW_OPCODE_MATH); assert(intel->gen >= 6); + (void) intel; /* Math is the same ISA format as other opcodes, except that CondModifier * becomes FC[3:0] and ThreadCtrl becomes FC[5:4]. ___ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit