i965/fs: Simplify FS in brw_nir_lower_inputs to only support scalar mode
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 13 Oct 2015 00:18:51 +0000 (17:18 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 14 Oct 2015 20:16:29 +0000 (13:16 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_nir.c

index 4f35d81fc7ed4b9584b2bc23e9d5d72954c7426e..5459ab59c1a3bc72fa4423f11360b3022ca57436 100644 (file)
@@ -96,8 +96,9 @@ brw_nir_lower_inputs(nir_shader *nir, bool is_scalar)
       }
       break;
    case MESA_SHADER_FRAGMENT:
+      assert(is_scalar);
       nir_assign_var_locations(&nir->inputs, &nir->num_inputs,
-                               is_scalar ? type_size_scalar : type_size_vec4);
+                               type_size_scalar);
       break;
    default:
       unreachable("unsupported shader stage");