i965: emit w/a for packed attribute formats in VS
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 22 Nov 2012 03:23:24 +0000 (16:23 +1300)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 27 Nov 2012 00:35:10 +0000 (16:35 -0800)
commit4a64efc01bef924d4b22d0878b1fef89e5e5bbac
tree7519313f703987bc5bf3070923123f129db64c12
parent352ae51efd75602de99a9ddf7c494453c7d6cb1c
i965: emit w/a for packed attribute formats in VS

Implements BGRA swizzle, sign recovery, and normalization
as required by ARB_vertex_type_10_10_10_2_rev.

V2: Ported to the new VS backend, since that's all that's left;
fixed normalization.

V3: Moved fixups out of the GLSL-only path, so it works for FF/VP too.

V4 (Kayden): Rework ES3 normalization, don't heap allocate registers;
tidy comments.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp