i965/nir: Pull GLSL uniform handling into a common function
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 17:45:53 +0000 (10:45 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 21:19:39 +0000 (14:19 -0700)
commit7fee8b6f055831bc070bb36d02a8b1c4d601652a
tree8feffd1767d7e9523bf10a374ff2eaf3b433a21d
parent03c4171b577b06b1d8dde50b6eb9507d8ef4c1ce
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>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_nir.h
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp