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 <gert.wol...@collabora.com> --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index b37a92fa43..7e44bfee85 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 -- 2.16.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev