[Mesa-dev] [PATCH 20/23] i965: Return progress from brw_nir_lower_uniforms().
Matt Turner
mattst88 at gmail.com
Thu Mar 16 21:18:17 UTC 2017
---
src/mesa/drivers/dri/i965/brw_program.c | 6 +++---
1 file 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 57c4cd4..e1f9896 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);
}
}
--
2.10.2
More information about the mesa-dev
mailing list