From 9bcdca2455e894da9d71a73562be9b9084b672a8 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 22 Sep 2020 13:53:25 -0700 Subject: [PATCH] intel/vec4: Silence unused paramter warnings in brw_vec4_generator.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/intel/compiler/brw_vec4_generator.cpp: In function ‘void generate_gs_svb_write(brw_codegen*, brw_vue_prog_data*, brw::vec4_instruction*, brw_reg, brw_reg, brw_reg)’: src/intel/compiler/brw_vec4_generator.cpp:488:49: warning: unused parameter ‘prog_data’ [-Wunused-parameter] 488 | struct brw_vue_prog_data *prog_data, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ src/intel/compiler/brw_vec4_generator.cpp: In function ‘void generate_pull_constant_load(brw_codegen*, brw_vue_prog_data*, brw::vec4_instruction*, brw_reg, brw_reg, brw_reg)’: src/intel/compiler/brw_vec4_generator.cpp:1269:55: warning: unused parameter ‘prog_data’ [-Wunused-parameter] 1269 | struct brw_vue_prog_data *prog_data, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ src/intel/compiler/brw_vec4_generator.cpp: In function ‘void generate_get_buffer_size(brw_codegen*, brw_vue_prog_data*, brw::vec4_instruction*, brw_reg, brw_reg, brw_reg)’: src/intel/compiler/brw_vec4_generator.cpp:1331:52: warning: unused parameter ‘prog_data’ [-Wunused-parameter] 1331 | struct brw_vue_prog_data *prog_data, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ src/intel/compiler/brw_vec4_generator.cpp: In function ‘void generate_pull_constant_load_gen7(brw_codegen*, brw_vue_prog_data*, brw::vec4_instruction*, brw_reg, brw_reg, brw_reg)’: src/intel/compiler/brw_vec4_generator.cpp:1357:60: warning: unused parameter ‘prog_data’ [-Wunused-parameter] 1357 | struct brw_vue_prog_data *prog_data, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ Reviewed-by: Jason Ekstrand Reviewed-by: Matt Turner Reviewed-by: Kenneth Graunke Part-of: --- src/intel/compiler/brw_vec4_generator.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/intel/compiler/brw_vec4_generator.cpp b/src/intel/compiler/brw_vec4_generator.cpp index e9142c2..d1aa40e 100644 --- a/src/intel/compiler/brw_vec4_generator.cpp +++ b/src/intel/compiler/brw_vec4_generator.cpp @@ -500,7 +500,6 @@ generate_gs_set_vertex_count(struct brw_codegen *p, static void generate_gs_svb_write(struct brw_codegen *p, - struct brw_vue_prog_data *prog_data, vec4_instruction *inst, struct brw_reg dst, struct brw_reg src0, @@ -1281,7 +1280,6 @@ generate_scratch_write(struct brw_codegen *p, static void generate_pull_constant_load(struct brw_codegen *p, - struct brw_vue_prog_data *prog_data, vec4_instruction *inst, struct brw_reg dst, struct brw_reg index, @@ -1343,7 +1341,6 @@ generate_pull_constant_load(struct brw_codegen *p, static void generate_get_buffer_size(struct brw_codegen *p, - struct brw_vue_prog_data *prog_data, vec4_instruction *inst, struct brw_reg dst, struct brw_reg src, @@ -1369,7 +1366,6 @@ generate_get_buffer_size(struct brw_codegen *p, static void generate_pull_constant_load_gen7(struct brw_codegen *p, - struct brw_vue_prog_data *prog_data, vec4_instruction *inst, struct brw_reg dst, struct brw_reg surf_index, @@ -1800,7 +1796,7 @@ generate_code(struct brw_codegen *p, break; case SHADER_OPCODE_GET_BUFFER_SIZE: - generate_get_buffer_size(p, prog_data, inst, dst, src[0], src[1]); + generate_get_buffer_size(p, inst, dst, src[0], src[1]); send_count++; break; @@ -1820,12 +1816,12 @@ generate_code(struct brw_codegen *p, break; case VS_OPCODE_PULL_CONSTANT_LOAD: - generate_pull_constant_load(p, prog_data, inst, dst, src[0], src[1]); + generate_pull_constant_load(p, inst, dst, src[0], src[1]); send_count++; break; case VS_OPCODE_PULL_CONSTANT_LOAD_GEN7: - generate_pull_constant_load_gen7(p, prog_data, inst, dst, src[0], src[1]); + generate_pull_constant_load_gen7(p, inst, dst, src[0], src[1]); send_count++; break; @@ -1844,7 +1840,7 @@ generate_code(struct brw_codegen *p, break; case GS_OPCODE_SVB_WRITE: - generate_gs_svb_write(p, prog_data, inst, dst, src[0], src[1]); + generate_gs_svb_write(p, inst, dst, src[0], src[1]); send_count++; break; -- 2.7.4