mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
radeon: Initialize swrast before setting limits
NOTE: This is a candidate for stable release branches. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
654a945f4d
commit
f6a4e1bc1e
1 changed files with 9 additions and 9 deletions
|
|
@ -251,13 +251,21 @@ r100CreateContext( gl_api api,
|
|||
rmesa->radeon.swtcl.RenderIndex = ~0;
|
||||
rmesa->radeon.hw.all_dirty = GL_TRUE;
|
||||
|
||||
ctx = &rmesa->radeon.glCtx;
|
||||
/* Initialize the software rasterizer and helper modules.
|
||||
*/
|
||||
_swrast_CreateContext( ctx );
|
||||
_vbo_CreateContext( ctx );
|
||||
_tnl_CreateContext( ctx );
|
||||
_swsetup_CreateContext( ctx );
|
||||
_ae_create_context( ctx );
|
||||
|
||||
/* Set the maximum texture size small enough that we can guarentee that
|
||||
* all texture units can bind a maximal texture and have all of them in
|
||||
* texturable memory at once. Depending on the allow_large_textures driconf
|
||||
* setting allow larger textures.
|
||||
*/
|
||||
|
||||
ctx = &rmesa->radeon.glCtx;
|
||||
ctx->Const.MaxTextureUnits = driQueryOptioni (&rmesa->radeon.optionCache,
|
||||
"texture_units");
|
||||
ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits;
|
||||
|
|
@ -307,14 +315,6 @@ r100CreateContext( gl_api api,
|
|||
|
||||
_mesa_set_mvp_with_dp4( ctx, GL_TRUE );
|
||||
|
||||
/* Initialize the software rasterizer and helper modules.
|
||||
*/
|
||||
_swrast_CreateContext( ctx );
|
||||
_vbo_CreateContext( ctx );
|
||||
_tnl_CreateContext( ctx );
|
||||
_swsetup_CreateContext( ctx );
|
||||
_ae_create_context( ctx );
|
||||
|
||||
/* Install the customized pipeline:
|
||||
*/
|
||||
_tnl_destroy_pipeline( ctx );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue