diff options
author | Gert Wollny <[email protected]> | 2018-06-05 13:58:53 +0200 |
---|---|---|
committer | Gert Wollny <[email protected]> | 2018-06-20 11:08:28 +0200 |
commit | a7cbb9ba4677401e52e52df3e4fc3a71123751de (patch) | |
tree | fc96de37a9ba8f6ede2fea09c43eb21fc8dc0e94 /src/gallium/auxiliary/tgsi | |
parent | 5fe1b3b848fdef1116704d38ac777a76a5f247b1 (diff) |
gallium/aux/tgsi_exec.c: remove superfluous parameter from etch_source_d
Remove unused parameter src_datatype from fetch_source_d, fixes warning;
tgsi/tgsi_exec.c: In function 'fetch_source_d':
tgsi/tgsi_exec.c:1594:40: warning: unused parameter 'src_datatype' [-Wunused-parameter]
enum tgsi_exec_datatype src_datatype)
^~~~~~~~~~~~
Signed-off-by: Gert Wollny <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_exec.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index 7e44bfee85f..d9ac0ff9dde 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -1590,8 +1590,7 @@ static void fetch_source_d(const struct tgsi_exec_machine *mach, union tgsi_exec_channel *chan, const struct tgsi_full_src_register *reg, - const uint chan_index, - enum tgsi_exec_datatype src_datatype) + const uint chan_index) { union tgsi_exec_channel index; union tgsi_exec_channel index2D; @@ -1740,7 +1739,7 @@ fetch_source(const struct tgsi_exec_machine *mach, const uint chan_index, enum tgsi_exec_datatype src_datatype) { - fetch_source_d(mach, chan, reg, chan_index, src_datatype); + fetch_source_d(mach, chan, reg, chan_index); if (reg->Register.Absolute) { if (src_datatype == TGSI_EXEC_DATA_FLOAT) { @@ -3549,8 +3548,8 @@ fetch_double_channel(struct tgsi_exec_machine *mach, union tgsi_exec_channel src[2]; uint i; - fetch_source_d(mach, &src[0], reg, chan_0, TGSI_EXEC_DATA_UINT); - fetch_source_d(mach, &src[1], reg, chan_1, TGSI_EXEC_DATA_UINT); + fetch_source_d(mach, &src[0], reg, chan_0); + fetch_source_d(mach, &src[1], reg, chan_1); for (i = 0; i < TGSI_QUAD_SIZE; i++) { chan->u[i][0] = src[0].u[i]; |