vc4: Consistently use qir_uniform_f().
authorEric Anholt <eric@anholt.net>
Wed, 13 Aug 2014 21:44:57 +0000 (14:44 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 15 Aug 2014 19:01:32 +0000 (12:01 -0700)
src/gallium/drivers/vc4/vc4_program.c

index e99abc6d3bd3575e63dd95b0fa37d47f6c48cd58..a836e130a48e7fd7e64f0a2612e3460e1904d9c8 100644 (file)
@@ -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] = {