[intel] Fix no_rast option on non-965.
The no_rast fallback was getting partially overwritten by later TNL init, resulting in a segfault when things were in a mixed-up state.
This commit is contained in:
@@ -88,6 +88,9 @@ i830CreateContext(const __GLcontextModes * mesaVis,
|
||||
_tnl_destroy_pipeline(ctx);
|
||||
_tnl_install_pipeline(ctx, intel_pipeline);
|
||||
|
||||
if (intel->no_rast)
|
||||
FALLBACK(intel, INTEL_FALLBACK_USER, 1);
|
||||
|
||||
intel->ctx.Const.MaxTextureUnits = I830_TEX_UNITS;
|
||||
intel->ctx.Const.MaxTextureImageUnits = I830_TEX_UNITS;
|
||||
intel->ctx.Const.MaxTextureCoordUnits = I830_TEX_UNITS;
|
||||
|
@@ -140,6 +140,9 @@ i915CreateContext(const __GLcontextModes * mesaVis,
|
||||
_tnl_destroy_pipeline(ctx);
|
||||
_tnl_install_pipeline(ctx, intel_pipeline);
|
||||
|
||||
if (intel->no_rast)
|
||||
FALLBACK(intel, INTEL_FALLBACK_USER, 1);
|
||||
|
||||
ctx->Const.MaxTextureUnits = I915_TEX_UNITS;
|
||||
ctx->Const.MaxTextureImageUnits = I915_TEX_UNITS;
|
||||
ctx->Const.MaxTextureCoordUnits = I915_TEX_UNITS;
|
||||
|
@@ -686,7 +686,6 @@ intelInitContext(struct intel_context *intel,
|
||||
/* Force all software fallbacks */
|
||||
if (driQueryOptionb(&intel->optionCache, "no_rast")) {
|
||||
fprintf(stderr, "disabling 3D rasterization\n");
|
||||
FALLBACK(intel, INTEL_FALLBACK_USER, 1);
|
||||
intel->no_rast = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user