diff options
author | Felix Kuehling <fxkuehl@gmx.de> | 2004-12-17 00:01:15 +0000 |
---|---|---|
committer | Felix Kuehling <fxkuehl@gmx.de> | 2004-12-17 00:01:15 +0000 |
commit | 0d39c4ebc9a5558c6b7514e33297e14445c5853f (patch) | |
tree | b245b279f41f8b4412e3fa199b5093ce735c6634 /src/mesa/drivers/dri/savage/savage_xmesa.c | |
parent | c403bcb8a7be437976d5adce41189fff1e7f690f (diff) |
Added a TNL pipeline stage that normalizes texture coordinates as a
workaround for bad Savage hardware interpolation of big texture
coordinates.
Diffstat (limited to 'src/mesa/drivers/dri/savage/savage_xmesa.c')
-rw-r--r-- | src/mesa/drivers/dri/savage/savage_xmesa.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index 944262c3cf..70827ea559 100644 --- a/src/mesa/drivers/dri/savage/savage_xmesa.c +++ b/src/mesa/drivers/dri/savage/savage_xmesa.c @@ -109,6 +109,22 @@ static const char *const card_extensions[] = NULL }; +extern const struct tnl_pipeline_stage _savage_texnorm_stage; + +static const struct tnl_pipeline_stage *savage_pipeline[] = { + + &_tnl_vertex_transform_stage, + &_tnl_normal_transform_stage, + &_tnl_lighting_stage, + &_tnl_fog_coordinate_stage, + &_tnl_texgen_stage, + &_tnl_texture_transform_stage, + &_savage_texnorm_stage, + &_tnl_render_stage, + 0, +}; + + /* this is first function called in dirver*/ static GLboolean @@ -455,7 +471,7 @@ savageCreateContext( const __GLcontextModes *mesaVis, /* Install the customized pipeline: */ -#if 0 +#if 1 _tnl_destroy_pipeline( ctx ); _tnl_install_pipeline( ctx, savage_pipeline ); #endif |