i965: new VS: use the VUE map to write out vertex attributes.
authorPaul Berry <stereotype441@gmail.com>
Tue, 23 Aug 2011 18:07:56 +0000 (11:07 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:04:18 +0000 (11:04 -0700)
commite604f98f580b74dd6c597ef492706ce74697443e
tree0ce2f9a9741da33802095a2991d1055136a60685
parentd1435a49e9765ab4e988dd8b65a5599da34f3512
i965: new VS: use the VUE map to write out vertex attributes.

Previously, the new VS backend used two functions,
emit_vue_header_gen6() and emit_vue_header_gen4() to emit the fixed
parts of the VUE, and then a pair of carefully-constructed loops to
emit the rest of the VUE, leaving out the parts that were already
emitted as part of the header.

This patch changes the new VS backend to use the VUE map to emit the
entire VUE.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp