OSDN Git Service

i965: new VS: Use output_reg[] to find NDC and HPOS registers.
authorPaul Berry <stereotype441@gmail.com>
Tue, 23 Aug 2011 17:17:34 +0000 (10:17 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Sep 2011 18:04:05 +0000 (11:04 -0700)
commit34fbab2125555ba0afffa361e1c74fb3359ef3a7
tree96c5a25fb5bc8089602ef05e16ff1a5cc93c8ff1
parent85e57eb9cada5c97d49e11295e23cc6e472b3130
i965: new VS: Use output_reg[] to find NDC and HPOS registers.

Previously, emit_vue_header_gen4() used local variables to keep track
of which registers were storing the NDC and HPOS.  This patch uses the
output_reg[] array instead, so that the code that manipulates NDC and
HPOS can be more easily refactored.

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