intel: Start adding defines and some bits for sandybridge bringup.

This commit is contained in:
Eric Anholt
2009-11-03 11:28:47 -08:00
parent 51e8a66fa1
commit 554a8f4026
6 changed files with 130 additions and 8 deletions

View File

@@ -610,7 +610,9 @@ intelInitContext(struct intel_context *intel,
intel->driContext = driContextPriv;
intel->driFd = sPriv->fd;
if (IS_965(intel->intelScreen->deviceID)) {
if (IS_GEN6(intel->intelScreen->deviceID)) {
intel->gen = 6;
} else if (IS_965(intel->intelScreen->deviceID)) {
intel->gen = 4;
} else if (IS_9XX(intel->intelScreen->deviceID)) {
intel->gen = 3;