i965/vec4: Fix mapping attributes
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Fri, 13 Jan 2017 16:47:57 +0000 (17:47 +0100)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 14 Jan 2017 00:23:32 +0000 (16:23 -0800)
commit56ee2df4bf9b1e8c26cf8689f5ef20237c95466b
tree12d63bd2460caeb6a2ecc2b65987c25c08266519
parentfed4afc5bba9455e857407e10a4dce79ca8dfe2d
i965/vec4: Fix mapping attributes

This patch reverts 57bab6708f2bbc1ab8a3d202e9a467963596d462, which was
causing issues with ILK and earlier VS programs.

1. brw_nir.c: Revert "i965/vec4/nir: vec4 also needs to remap vs attributes"

   Do not perform a remap in vec4 backend. Rather, do it later when
   setup attributes

2. brw_vec4.cpp: This fixes mapping ATTRx to proper GRFn.

Suggested-by: Kenneth Graunke <kenneth@whitecape.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99391
[jordan.l.justen@intel.com: merge Juan's two patches from bugzilla]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_nir.c
src/mesa/drivers/dri/i965/brw_vec4.cpp