diff options
Diffstat (limited to 'src/gallium/drivers/vc4')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 11 | ||||
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 8d243374dae..a5011039be2 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -111,19 +111,8 @@ static struct qreg get_temp_for_uniform(struct vc4_compile *c, enum quniform_contents contents, uint32_t data) { - for (int i = 0; i < c->num_uniforms; i++) { - if (c->uniform_contents[i] == contents && - c->uniform_data[i] == data) - return c->uniforms[i]; - } - struct qreg u = add_uniform(c, contents, data); struct qreg t = qir_MOV(c, u); - - resize_qreg_array(c, &c->uniforms, &c->uniforms_array_size, - u.index + 1); - - c->uniforms[u.index] = t; return t; } diff --git a/src/gallium/drivers/vc4/vc4_qir.h b/src/gallium/drivers/vc4/vc4_qir.h index 6a2e3c4b2d6..f771c425415 100644 --- a/src/gallium/drivers/vc4/vc4_qir.h +++ b/src/gallium/drivers/vc4/vc4_qir.h @@ -215,7 +215,6 @@ struct vc4_compile { struct qreg *temps; struct qreg *inputs; struct qreg *outputs; - struct qreg *uniforms; struct qreg *consts; uint32_t temps_array_size; uint32_t inputs_array_size; |