i965/vs: Expose the payload registers to the register allocator.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 22 Aug 2013 04:55:40 +0000 (21:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Aug 2013 18:21:10 +0000 (11:21 -0700)
commit7aaaa8bc8fb851a4783292a5e1ffdfeda2451dae
tree2762c53955e4b135041466448d19ff4178347f04
parent528d70d0b5fd2722bc32d42d8859865081cf0730
i965/vs: Expose the payload registers to the register allocator.

For now, nothing else can get allocated over them.  That may change at
some point in the future.

This also means that base_reg_count can be computed without knowing the
number of registers used for the payload, which is required if we want
to allocate the register set once at context creation time.

See commit 551e1cd44f6857f7e29ea4c8f892da5a97844377, which implemented
virtually identical code in the FS backend.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp