HACK/i965: Disable assign_var_locations on uniforms
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 Nov 2015 06:26:42 +0000 (22:26 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 8 Dec 2015 01:19:55 +0000 (17:19 -0800)
This conflicts with the way we're doing uniforms in Vulkan.

src/mesa/drivers/dri/i965/brw_nir.c

index 91358d8f389ac9be1832be783cdc84fa9e5726ca..10e9273521016feefd2805b5cfd86a294af78c4e 100644 (file)
@@ -298,9 +298,9 @@ brw_lower_nir(nir_shader *nir,
 
    OPT_V(brw_nir_lower_inputs, devinfo, is_scalar);
    OPT_V(brw_nir_lower_outputs, is_scalar);
-   nir_assign_var_locations(&nir->uniforms,
-                            &nir->num_uniforms,
-                            is_scalar ? type_size_scalar : type_size_vec4);
+   //nir_assign_var_locations(&nir->uniforms,
+   //                         &nir->num_uniforms,
+   //                         is_scalar ? type_size_scalar : type_size_vec4);
    OPT_V(nir_lower_io, nir_var_all, is_scalar ? type_size_scalar : type_size_vec4);
 
    if (shader_prog) {