summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-10-02 10:45:53 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-10-02 14:19:39 -0700
commit7fee8b6f055831bc070bb36d02a8b1c4d601652a (patch)
tree8feffd1767d7e9523bf10a374ff2eaf3b433a21d /src/mesa/drivers/dri/i965/brw_nir.h
parent03c4171b577b06b1d8dde50b6eb9507d8ef4c1ce (diff)
downloadexternal_mesa3d-7fee8b6f055831bc070bb36d02a8b1c4d601652a.zip
external_mesa3d-7fee8b6f055831bc070bb36d02a8b1c4d601652a.tar.gz
external_mesa3d-7fee8b6f055831bc070bb36d02a8b1c4d601652a.tar.bz2
i965/nir: Pull GLSL uniform handling into a common function
The way we deal with GLSL uniforms and builtins is basically the same in both the vec4 and the fs backend. This commit takes the best parts of both implementations and pulls the common code into a shared helper function. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_nir.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir.h b/src/mesa/drivers/dri/i965/brw_nir.h
index 5ef5bf5..b4a6dc0 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.h
+++ b/src/mesa/drivers/dri/i965/brw_nir.h
@@ -85,6 +85,12 @@ enum brw_reg_type brw_type_for_nir_type(nir_alu_type type);
enum glsl_base_type brw_glsl_base_type_for_nir_type(nir_alu_type type);
+void brw_nir_setup_glsl_uniforms(nir_shader *shader,
+ struct gl_shader_program *shader_prog,
+ const struct gl_program *prog,
+ struct brw_stage_prog_data *stage_prog_data,
+ bool is_scalar);
+
void brw_nir_setup_arb_uniforms(nir_shader *shader, struct gl_program *prog,
struct brw_stage_prog_data *stage_prog_data);