i965/nir/vec4: Add shader function implementation