intel: Replace IS_G4X() across the driver with context structure usage.

Saves ~2KB of code.
This commit is contained in:
Eric Anholt
2009-12-16 15:22:26 -08:00
parent 1c96e85c9d
commit 0b87f143c4
16 changed files with 79 additions and 59 deletions

View File

@@ -623,6 +623,10 @@ intelInitContext(struct intel_context *intel,
if (IS_IGDNG(intel->intelScreen->deviceID)) {
intel->is_ironlake = GL_TRUE;
intel->needs_ff_sync = GL_TRUE;
intel->has_luminance_srgb = GL_TRUE;
} else if (IS_G4X(intel->intelScreen->deviceID)) {
intel->has_luminance_srgb = GL_TRUE;
intel->is_g4x = GL_TRUE;
}
/* Dri stuff */