intel: Introduce a new intel_context::gt field to go along with gen.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 24 Sep 2011 08:10:04 +0000 (01:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Sep 2011 18:50:31 +0000 (11:50 -0700)
commit490e6470a09c3a6049e5e859d72b0b679ef5d070
tree4c15c8682946c31c50a30300371c437820b6c38d
parent3f9f1b365967a41f09431f724f43b59ca0e753b8
intel: Introduce a new intel_context::gt field to go along with gen.

It seems that GT1/GT2 sorts of variations are here to stay, and more
special cases will likely be required in the future.  Checking by PCI ID
via the IS_xxx_GTx macros is cumbersome; introducing a new 'gt' field
analogous to intel->gen will make this easier.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_context.h