mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
i965/vec4: Silence unused parameter warnings
brw_vec4_copy_propagation.cpp:243:59: warning: unused parameter 'reg' [-Wunused-parameter]
int arg, struct copy_entry *entry, int reg)
^
brw_vec4_generator.cpp:869:57: warning: unused parameter 'inst' [-Wunused-parameter]
vec4_generator::generate_unpack_flags(vec4_instruction *inst,
^
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
2524f9b80d
commit
4470bf1f49
3 changed files with 5 additions and 7 deletions
|
|
@ -498,8 +498,7 @@ private:
|
|||
struct brw_reg dst,
|
||||
struct brw_reg surf_index,
|
||||
struct brw_reg offset);
|
||||
void generate_unpack_flags(vec4_instruction *inst,
|
||||
struct brw_reg dst);
|
||||
void generate_unpack_flags(struct brw_reg dst);
|
||||
|
||||
void generate_untyped_atomic(vec4_instruction *inst,
|
||||
struct brw_reg dst,
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ try_constant_propagate(struct brw_context *brw, vec4_instruction *inst,
|
|||
|
||||
static bool
|
||||
try_copy_propagate(struct brw_context *brw, vec4_instruction *inst,
|
||||
int arg, struct copy_entry *entry, int reg)
|
||||
int arg, struct copy_entry *entry)
|
||||
{
|
||||
/* For constant propagation, we only handle the same constant
|
||||
* across all 4 channels. Some day, we should handle the 8-bit
|
||||
|
|
@ -413,7 +413,7 @@ vec4_visitor::opt_copy_propagation(bool do_constant_prop)
|
|||
if (do_constant_prop && try_constant_propagate(brw, inst, i, &entry))
|
||||
progress = true;
|
||||
|
||||
if (try_copy_propagate(brw, inst, i, &entry, reg))
|
||||
if (try_copy_propagate(brw, inst, i, &entry))
|
||||
progress = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -866,8 +866,7 @@ vec4_generator::generate_oword_dual_block_offsets(struct brw_reg m1,
|
|||
}
|
||||
|
||||
void
|
||||
vec4_generator::generate_unpack_flags(vec4_instruction *inst,
|
||||
struct brw_reg dst)
|
||||
vec4_generator::generate_unpack_flags(struct brw_reg dst)
|
||||
{
|
||||
brw_push_insn_state(p);
|
||||
brw_set_default_mask_control(p, BRW_MASK_DISABLE);
|
||||
|
|
@ -1510,7 +1509,7 @@ vec4_generator::generate_code(const cfg_t *cfg)
|
|||
break;
|
||||
|
||||
case VS_OPCODE_UNPACK_FLAGS_SIMD4X2:
|
||||
generate_unpack_flags(inst, dst);
|
||||
generate_unpack_flags(dst);
|
||||
break;
|
||||
|
||||
case VEC4_OPCODE_PACK_BYTES: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue