summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-05-25 09:27:08 -0700
committerJason Ekstrand <[email protected]>2015-05-25 09:27:10 -0700
commitcc3d2755577dab8c930f0bccff2756cb92aef8bc (patch)
treef12e414feca21e23c8338923744ff51edafe4ef5
parent843ff4ba2af0b19a377a3bf1c9ae7b2b1f2c0e4c (diff)
Fix an unused variable warning
Trivial. Deleted the 2 unneeded lines.
-rw-r--r--src/mesa/program/prog_to_nir.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index 3067b2516bf..5ca81e54b7f 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -188,8 +188,6 @@ ptn_get_src(struct ptn_compile *c, const struct prog_src_register *prog_src)
/* This is a negative offset which should be added to the address
* register's value.
*/
- nir_alu_src addr_src = { NIR_SRC_INIT };
- addr_src.src = nir_src_for_reg(c->addr_reg);
reladdr = nir_iadd(b, reladdr, nir_imm_int(b, prog_src->Index));
deref_arr->base_offset = 0;