intel: Replace some gen3 IS_* checks with context structure usage.

Shaves 400 bytes or so from i915_dri.so.
This commit is contained in:
Eric Anholt
2009-12-16 15:50:40 -08:00
parent cb3810dd19
commit f677480389
6 changed files with 13 additions and 9 deletions

View File

@@ -199,8 +199,7 @@ intelInitExtensions(GLcontext *ctx)
if (intel->gen >= 4)
driInitExtensions(ctx, brw_extensions, GL_FALSE);
if (IS_915(intel->intelScreen->deviceID)
|| IS_945(intel->intelScreen->deviceID)) {
if (intel->gen == 3) {
driInitExtensions(ctx, i915_extensions, GL_FALSE);
if (driQueryOptionb(&intel->optionCache, "fragment_shader"))