mesa: change MAX_PROGRAM_ADDRESS_REGS to 1, clamp to it in state tracker
authorBrian Paul <brianp@vmware.com>
Tue, 4 Jun 2013 16:51:15 +0000 (09:51 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 4 Jun 2013 19:29:38 +0000 (13:29 -0600)
commitf270baf074d1526beb49d0fbc2175cf02344a5b9
treecdf5415550cfb8f98af30b88100c349e854a54dc
parent2fd785d12602103a1c05fd52903bdb4ffefadaad
mesa: change MAX_PROGRAM_ADDRESS_REGS to 1, clamp to it in state tracker

We've never properly supported more than one address register.  There
isn't even a field in prog_src_register or prog_dst_register to indicate
which address register to use if RelAddr!=0.

In the state tracker, clamp MaxAddressRegs against MAX_PROGRAM_ADDRESS_REGS
since many gallium drivers do support more.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65226

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/config.h
src/mesa/state_tracker/st_extensions.c