From 5fe1b3b848fdef1116704d38ac777a76a5f247b1 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 5 Jun 2018 13:58:52 +0200 Subject: gallium/aux/tgsi_exec.c: remove superfluous parameter from store_dest_dstret MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove unused parameter inst from store_dest_dstret (and consequently also from store_dest_double), fixes warning: tgsi/tgsi_exec.c: In Funktion »store_dest_dstret«: tgsi/tgsi_exec.c:1765:47: Warning: unused parameter »inst« [-Wunused-parameter] const struct tgsi_full_instruction *inst) ^~~~ Signed-off-by: Gert Wollny Reviewed-by: Emil Velikov --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index b37a92fa437..7e44bfee85f 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -1763,7 +1763,6 @@ static union tgsi_exec_channel * store_dest_dstret(struct tgsi_exec_machine *mach, const union tgsi_exec_channel *chan, const struct tgsi_full_dst_register *reg, - const struct tgsi_full_instruction *inst, uint chan_index, enum tgsi_exec_datatype dst_datatype) { @@ -1931,7 +1930,6 @@ static void store_dest_double(struct tgsi_exec_machine *mach, const union tgsi_exec_channel *chan, const struct tgsi_full_dst_register *reg, - const struct tgsi_full_instruction *inst, uint chan_index, enum tgsi_exec_datatype dst_datatype) { @@ -1939,8 +1937,7 @@ store_dest_double(struct tgsi_exec_machine *mach, const uint execmask = mach->ExecMask; int i; - dst = store_dest_dstret(mach, chan, reg, inst, chan_index, - dst_datatype); + dst = store_dest_dstret(mach, chan, reg, chan_index, dst_datatype); if (!dst) return; @@ -1962,8 +1959,7 @@ store_dest(struct tgsi_exec_machine *mach, const uint execmask = mach->ExecMask; int i; - dst = store_dest_dstret(mach, chan, reg, inst, chan_index, - dst_datatype); + dst = store_dest_dstret(mach, chan, reg, chan_index, dst_datatype); if (!dst) return; @@ -3603,9 +3599,9 @@ store_double_channel(struct tgsi_exec_machine *mach, } } - store_dest_double(mach, &dst[0], reg, inst, chan_0, TGSI_EXEC_DATA_UINT); - if (chan_1 != -1) - store_dest_double(mach, &dst[1], reg, inst, chan_1, TGSI_EXEC_DATA_UINT); + store_dest_double(mach, &dst[0], reg, chan_0, TGSI_EXEC_DATA_UINT); + if (chan_1 != (unsigned)-1) + store_dest_double(mach, &dst[1], reg, chan_1, TGSI_EXEC_DATA_UINT); } static void -- cgit v1.2.3