i965/nir: Pull common ARB program uniform handling into a common function
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 29 Sep 2015 21:07:20 +0000 (14:07 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 2 Oct 2015 21:19:39 +0000 (14:19 -0700)
commit03c4171b577b06b1d8dde50b6eb9507d8ef4c1ce
tree68496cb85f98e420a0f9c62555c067a586d699a5
parent390b48fc4a9836b563560581fbfb4833546de0c8
i965/nir: Pull common ARB program uniform handling into a common function

The way we deal with ARB program uniforms 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/Makefile.sources
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 [new file with mode: 0644]
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp