summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine
diff options
context:
space:
mode:
authorAxel Davy <[email protected]>2016-10-12 18:58:24 +0200
committerAxel Davy <[email protected]>2016-10-13 21:16:35 +0200
commit98b8ad61c6bc531646bec1e773b0f57f99e47159 (patch)
treeaa44c242437a4a02018dfd704809b584f88dddfe /src/gallium/state_trackers/nine
parent197cdd1bbdafaf44dc705e518987a08953b092ab (diff)
st/nine: Remove useless code in nine_shader
Since 1604efa6fda9b780e8537a131ad77f3e83e5a67a, 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 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine')
-rw-r--r--src/gallium/state_trackers/nine/nine_shader.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c
index 0f8bcdd7d7f..ab21dafc124 100644
--- a/src/gallium/state_trackers/nine/nine_shader.c
+++ b/src/gallium/state_trackers/nine/nine_shader.c
@@ -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;