added _tnl_allow_vertex/pixel_fog() calls

This commit is contained in:
Brian Paul 2004-02-26 00:28:03 +00:00
parent 21893e56e0
commit 04bcaac383
10 changed files with 29 additions and 9 deletions

View file

@ -156,10 +156,12 @@ GLboolean gammaCreateContext( const __GLcontextModes *glVisual,
_tnl_destroy_pipeline( ctx );
_tnl_install_pipeline( ctx, gamma_pipeline );
/* Configure swrast to match hardware characteristics:
/* Configure swrast & TNL to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
gammaInitVB( ctx );
gammaDDInitExtensions( ctx );

View file

@ -265,10 +265,12 @@ i810CreateContext( const __GLcontextModes *mesaVis,
_tnl_destroy_pipeline( ctx );
_tnl_install_pipeline( ctx, i810_pipeline );
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
/* Dri stuff
*/

View file

@ -318,9 +318,11 @@ GLboolean i830CreateContext( const __GLcontextModes *mesaVis,
_tnl_destroy_pipeline( ctx );
_tnl_install_pipeline( ctx, i830_pipeline );
/* Configure swrast to match hardware characteristics: */
/* Configure swrast and T&L to match hardware characteristics: */
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
/* Dri stuff */
imesa->hHWContext = driContextPriv->hHWContext;

View file

@ -208,10 +208,12 @@ GLboolean mach64CreateContext( const __GLcontextModes *glVisual,
/* _tnl_destroy_pipeline( ctx ); */
/* _tnl_install_pipeline( ctx, mach64_pipeline ); */
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
driInitExtensions( ctx, card_extensions, GL_TRUE );

View file

@ -635,10 +635,12 @@ mgaCreateContext( const __GLcontextModes *mesaVis,
_tnl_destroy_pipeline( ctx );
_tnl_install_pipeline( ctx, mga_pipeline );
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
mmesa->primary_offset = mmesa->mgaScreen->primary.handle;

View file

@ -230,10 +230,12 @@ GLboolean r128CreateContext( const __GLcontextModes *glVisual,
/* _tnl_destroy_pipeline( ctx ); */
/* _tnl_install_pipeline( ctx, r128_pipeline ); */
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
driInitExtensions( ctx, card_extensions, GL_TRUE );
if (sPriv->drmMinor >= 4)

View file

@ -380,10 +380,12 @@ radeonCreateContext( const __GLcontextModes *glVisual,
_tnl_isolate_materials( ctx, GL_TRUE );
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_FALSE );
_swrast_allow_vertex_fog( ctx, GL_TRUE );
_tnl_allow_pixel_fog( ctx, GL_FALSE );
_tnl_allow_vertex_fog( ctx, GL_TRUE );
_math_matrix_ctr( &rmesa->TexGenMatrix[0] );

View file

@ -225,6 +225,8 @@ sisCreateContext( const __GLcontextModes *glVisual,
_swrast_allow_pixel_fog( ctx, GL_TRUE );
_swrast_allow_vertex_fog( ctx, GL_FALSE );
_tnl_allow_pixel_fog( ctx, GL_TRUE );
_tnl_allow_vertex_fog( ctx, GL_FALSE );
/* XXX these should really go right after _mesa_init_driver_functions() */
sisDDInitStateFuncs( ctx );

View file

@ -252,10 +252,12 @@ GLboolean tdfxCreateContext( const __GLcontextModes *mesaVis,
_tnl_destroy_pipeline( ctx );
_tnl_install_pipeline( ctx, tdfx_pipeline );
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog( ctx, GL_TRUE );
_swrast_allow_vertex_fog( ctx, GL_FALSE );
_tnl_allow_pixel_fog( ctx, GL_TRUE );
_tnl_allow_vertex_fog( ctx, GL_FALSE );
tdfxDDInitExtensions( ctx );
/* XXX these should really go right after _mesa_init_driver_functions() */

View file

@ -446,10 +446,12 @@ viaCreateContext(const __GLcontextModes *mesaVis,
_tnl_destroy_pipeline(ctx);
_tnl_install_pipeline(ctx, via_pipeline);
/* Configure swrast to match hardware characteristics:
/* Configure swrast and T&L to match hardware characteristics:
*/
_swrast_allow_pixel_fog(ctx, GL_FALSE);
_swrast_allow_vertex_fog(ctx, GL_TRUE);
_tnl_allow_pixel_fog(ctx, GL_FALSE);
_tnl_allow_vertex_fog(ctx, GL_TRUE);
#ifndef _SOLO
vmesa->display = dpy;