mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
i965: Rename IS_GT1 and IS_GT2 to IS_SNB_GT1 and IS_SNB_GT2.
This should help distinguish Sandybridge GT1/GT2 from Ivybridge GT1/GT2. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2758e65f28
commit
3e0bb02358
2 changed files with 4 additions and 4 deletions
|
|
@ -195,7 +195,7 @@ GLboolean brwCreateContext( int api,
|
|||
assert(!"Unknown gen7 device.");
|
||||
}
|
||||
} else if (intel->gen == 6) {
|
||||
if (IS_GT2(intel->intelScreen->deviceID)) {
|
||||
if (IS_SNB_GT2(intel->intelScreen->deviceID)) {
|
||||
/* This could possibly be 80, but is supposed to require
|
||||
* disabling of WIZ hashing (bit 6 of GT_MODE, 0x20d0) and a
|
||||
* GPU reset to change.
|
||||
|
|
|
|||
|
|
@ -131,16 +131,16 @@
|
|||
/* Compat macro for intel_decode.c */
|
||||
#define IS_IRONLAKE(devid) IS_GEN5(devid)
|
||||
|
||||
#define IS_GT1(devid) (devid == PCI_CHIP_SANDYBRIDGE_GT1 || \
|
||||
#define IS_SNB_GT1(devid) (devid == PCI_CHIP_SANDYBRIDGE_GT1 || \
|
||||
devid == PCI_CHIP_SANDYBRIDGE_M_GT1 || \
|
||||
devid == PCI_CHIP_SANDYBRIDGE_S)
|
||||
|
||||
#define IS_GT2(devid) (devid == PCI_CHIP_SANDYBRIDGE_GT2 || \
|
||||
#define IS_SNB_GT2(devid) (devid == PCI_CHIP_SANDYBRIDGE_GT2 || \
|
||||
devid == PCI_CHIP_SANDYBRIDGE_GT2_PLUS || \
|
||||
devid == PCI_CHIP_SANDYBRIDGE_M_GT2 || \
|
||||
devid == PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS)
|
||||
|
||||
#define IS_GEN6(devid) (IS_GT1(devid) || IS_GT2(devid))
|
||||
#define IS_GEN6(devid) (IS_SNB_GT1(devid) || IS_SNB_GT2(devid))
|
||||
|
||||
#define IS_IVB_GT1(devid) (devid == PCI_CHIP_IVYBRIDGE_GT1 || \
|
||||
devid == PCI_CHIP_IVYBRIDGE_M_GT1 || \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue