st/nine: Remove useless code in nine_shader
Since 1604efa6fd
,
lconsti and lconstb don't need to be initialized.
Remove some leftovers from the previous code (which
has now invalid use of ARRAY_SIZE on a pointer instead
of an array).
Reported by Coverity.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
197cdd1bbd
commit
98b8ad61c6
|
@ -3361,11 +3361,6 @@ tx_ctor(struct shader_translator *tx, struct nine_shader_info *info)
|
|||
for (i = 0; i < ARRAY_SIZE(tx->regs.vT); ++i)
|
||||
tx->regs.vT[i] = ureg_src_undef();
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(tx->lconsti); ++i)
|
||||
tx->lconsti[i].idx = -1;
|
||||
for (i = 0; i < ARRAY_SIZE(tx->lconstb); ++i)
|
||||
tx->lconstb[i].idx = -1;
|
||||
|
||||
sm1_read_version(tx);
|
||||
|
||||
info->version = (tx->version.major << 4) | tx->version.minor;
|
||||
|
|
Loading…
Reference in New Issue