intel: Replace some gen3 IS_* checks with context structure usage.
Shaves 400 bytes or so from i915_dri.so.
This commit is contained in:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user