mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
added _tnl_allow_vertex/pixel_fog() calls
This commit is contained in:
parent
21893e56e0
commit
04bcaac383
10 changed files with 29 additions and 9 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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] );
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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() */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue