summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-03-09 11:01:53 -0800
committerMatt Turner <[email protected]>2017-03-23 14:34:44 -0700
commite0f8daeb86df73cdd76e7ae4b06203d84367d6e0 (patch)
tree996e6007ba8c17ac97e50dfb757b977406768f4e
parentef71af7356ae5d19a90b3bb5e83f14341173b8f3 (diff)
i965: Return progress from brw_nir_lower_uniforms().
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c
index 57c4cd4149c..e1f989646c4 100644
--- a/src/mesa/drivers/dri/i965/brw_program.c
+++ b/src/mesa/drivers/dri/i965/brw_program.c
@@ -47,17 +47,17 @@
#include "brw_defines.h"
#include "intel_batchbuffer.h"
-static void
+static bool
brw_nir_lower_uniforms(nir_shader *nir, bool is_scalar)
{
if (is_scalar) {
nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms,
type_size_scalar_bytes);
- nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0);
+ return nir_lower_io(nir, nir_var_uniform, type_size_scalar_bytes, 0);
} else {
nir_assign_var_locations(&nir->uniforms, &nir->num_uniforms,
type_size_vec4_bytes);
- nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0);
+ return nir_lower_io(nir, nir_var_uniform, type_size_vec4_bytes, 0);
}
}