diff options
author | Eric Anholt <[email protected]> | 2014-08-13 14:44:57 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-08-15 12:01:32 -0700 |
commit | e6fe6d0694ec00b20423cb58da0b0dd288467651 (patch) | |
tree | 64d9cd195c19d6d9296696f7816fc1e1d6b711c8 /src/gallium/drivers/vc4/vc4_program.c | |
parent | ba875b3a0d8119fda030dfdc28cd831d9ca51e08 (diff) |
vc4: Consistently use qir_uniform_f().
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index e99abc6d3bd..a836e130a48 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -568,11 +568,10 @@ emit_vertex_input(struct tgsi_to_qir *trans, int attr) } /* FALLTHROUGH */ case UTIL_FORMAT_SWIZZLE_0: - trans->inputs[attr * 4 + i] = qir_uniform_ui(trans, 0); + trans->inputs[attr * 4 + i] = qir_uniform_f(trans, 0.0); break; case UTIL_FORMAT_SWIZZLE_1: - trans->inputs[attr * 4 + i] = qir_uniform_ui(trans, - fui(1.0)); + trans->inputs[attr * 4 + i] = qir_uniform_f(trans, 1.0); break; default: if (!format_warned && @@ -779,13 +778,13 @@ emit_frag_end(struct tgsi_to_qir *trans) */ if (0) { trans->outputs[format_desc->swizzle[0]] = - qir_uniform_ui(trans, fui(1.0)); + qir_uniform_f(trans, 1.0); trans->outputs[format_desc->swizzle[1]] = - qir_uniform_ui(trans, fui(0.0)); + qir_uniform_f(trans, 0.0); trans->outputs[format_desc->swizzle[2]] = - qir_uniform_ui(trans, fui(1.0)); + qir_uniform_f(trans, 1.0); trans->outputs[format_desc->swizzle[3]] = - qir_uniform_ui(trans, fui(0.5)); + qir_uniform_f(trans, 0.5); } struct qreg swizzled_outputs[4] = { |