From bdb15c23440e8e40e2854c11a545846ee1eee1c8 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 28 Mar 2018 16:35:10 -0700 Subject: [PATCH] intel/compiler: Silence unused parameter warning in compile_cs_to_nir MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/intel/compiler/brw_fs.cpp: In function ‘nir_shader* compile_cs_to_nir(const brw_compiler*, void*, const brw_cs_prog_key*, brw_cs_prog_data*, const nir_shader*, unsigned int)’: src/intel/compiler/brw_fs.cpp:7205:44: warning: unused parameter ‘prog_data’ [-Wunused-parameter] struct brw_cs_prog_data *prog_data, ^~~~~~~~~ Signed-off-by: Ian Romanick Reviewed-by: Jason Ekstrand --- src/intel/compiler/brw_fs.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 8156507..b21996c 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -7197,7 +7197,6 @@ static nir_shader * compile_cs_to_nir(const struct brw_compiler *compiler, void *mem_ctx, const struct brw_cs_prog_key *key, - struct brw_cs_prog_data *prog_data, const nir_shader *src_shader, unsigned dispatch_width) { @@ -7238,7 +7237,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, */ if (min_dispatch_width <= 8) { nir_shader *nir8 = compile_cs_to_nir(compiler, mem_ctx, key, - prog_data, src_shader, 8); + src_shader, 8); v8 = new fs_visitor(compiler, log_data, mem_ctx, key, &prog_data->base, NULL, /* Never used in core profile */ nir8, 8, shader_time_index); @@ -7259,7 +7258,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, !fail_msg && min_dispatch_width <= 16) { /* Try a SIMD16 compile */ nir_shader *nir16 = compile_cs_to_nir(compiler, mem_ctx, key, - prog_data, src_shader, 16); + src_shader, 16); v16 = new fs_visitor(compiler, log_data, mem_ctx, key, &prog_data->base, NULL, /* Never used in core profile */ nir16, 16, shader_time_index); @@ -7292,7 +7291,7 @@ brw_compile_cs(const struct brw_compiler *compiler, void *log_data, if (!fail_msg && (min_dispatch_width > 16 || (INTEL_DEBUG & DEBUG_DO32))) { /* Try a SIMD32 compile */ nir_shader *nir32 = compile_cs_to_nir(compiler, mem_ctx, key, - prog_data, src_shader, 32); + src_shader, 32); v32 = new fs_visitor(compiler, log_data, mem_ctx, key, &prog_data->base, NULL, /* Never used in core profile */ nir32, 32, shader_time_index); -- 2.7.4