HACK: Don't call nir_setup_uniforms
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 00:55:45 +0000 (17:55 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 27 Aug 2015 17:25:58 +0000 (10:25 -0700)
We're doing our own uniform setup and we don't need to call into the entire
GL stack to mess with things.

src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 6272b61a98be0edf1321205f9576d822feff1605..cd2b850581e52ab109ce2cc9d4ff0c9b7bd5ceba 100644 (file)
@@ -42,7 +42,8 @@ fs_visitor::emit_nir_code()
     */
    nir_setup_inputs(nir);
    nir_setup_outputs(nir);
-   nir_setup_uniforms(nir);
+   uniforms = nir->num_uniforms;
+   //nir_setup_uniforms(nir);
    nir_emit_system_values(nir);
 
    /* get the main function and emit it */