i965: Move hardware limits to brw_device_info.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 26 Sep 2013 00:01:55 +0000 (17:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 13 Oct 2013 07:10:43 +0000 (00:10 -0700)
commitd76f6c7ae4d738193af2b3a06c4e6321e5e4daac
treedd0b3c58b7ff088410dd7663ec20040224c4a0dc
parentafe05e71931f53843999ea967946fae1b219a374
i965: Move hardware limits to brw_device_info.

Since each kind of device has its own brw_device_info structure, we can
simply store the URB and thread limits there.  This eliminates all the
large if-ladders, and simplifies the context initialization code quite a
bit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_device_info.c
src/mesa/drivers/dri/i965/brw_device_info.h