Commit 8ea17294 authored by Gareth Hughes's avatar Gareth Hughes
Browse files

Infrastructure for asm optimized lighting functions. Actual

implementations will follow.
parent 757e7feb
......@@ -412,10 +412,10 @@ one_time_init( void )
_mesa_init_fog();
_mesa_init_math();
gl_init_lists();
gl_init_shade();
gl_init_texture();
gl_init_transformation();
gl_init_translate();
gl_init_shade();
gl_init_vbrender();
gl_init_vbxform();
gl_init_vertices();
......
/* $Id: 3dnow.c,v 1.5.4.3 2000/10/22 23:10:51 gareth Exp $ */
/* $Id: 3dnow.c,v 1.5.4.4 2000/11/30 02:44:22 gareth Exp $ */
/*
* Mesa 3-D graphics library
......@@ -31,6 +31,7 @@
#include "glheader.h"
#include "context.h"
#include "shade.h"
#include "types.h"
#include "vertices.h"
#include "xform.h"
......@@ -171,6 +172,18 @@ void gl_init_3dnow_transform_asm( void )
#endif
}
void gl_init_3dnow_shade_asm( void )
{
#ifdef USE_3DNOW_ASM
/* When the time comes, initialize optimized lighting here.
*/
#if 0
gl_test_all_shade_functions( "3DNow!" );
#endif
#endif
}
void gl_init_3dnow_vertex_asm( void )
{
#ifdef USE_3DNOW_ASM
......
/* $Id: 3dnow.h,v 1.1.1.1.6.1 2000/10/22 23:10:51 gareth Exp $ */
/* $Id: 3dnow.h,v 1.1.1.1.6.2 2000/11/30 02:44:22 gareth Exp $ */
/*
* Mesa 3-D graphics library
......@@ -32,9 +32,8 @@
#ifndef __3DNOW_H__
#define __3DNOW_H__
#include "xform.h"
void gl_init_3dnow_transform_asm( void );
void gl_init_3dnow_shade_asm( void );
void gl_init_3dnow_vertex_asm( void );
#endif
/* $Id: common_x86.c,v 1.6.4.2 2000/10/22 23:10:51 gareth Exp $ */
/* $Id: common_x86.c,v 1.6.4.3 2000/11/30 02:44:22 gareth Exp $ */
/*
* Mesa 3-D graphics library
......@@ -105,6 +105,21 @@ void gl_init_all_x86_transform_asm( void )
/* Note: the above function must be called before this one, so that
* gl_x86_cpu_features gets correctly initialized.
*/
void gl_init_all_x86_shade_asm( void )
{
#ifdef USE_X86_ASM
if ( gl_x86_cpu_features ) {
/* Nothing here yet... */
}
#ifdef USE_3DNOW_ASM
if ( cpu_has_3dnow && getenv( "MESA_NO_3DNOW" ) == 0 ) {
gl_init_3dnow_shade_asm();
}
#endif
#endif
}
void gl_init_all_x86_vertex_asm( void )
{
#ifdef USE_X86_ASM
......
/* $Id: common_x86_asm.h,v 1.1.2.1 2000/10/22 23:10:51 gareth Exp $ */
/* $Id: common_x86_asm.h,v 1.1.2.2 2000/11/30 02:44:22 gareth Exp $ */
/*
* Mesa 3-D graphics library
......@@ -58,6 +58,7 @@
extern int gl_x86_cpu_features;
extern void gl_init_all_x86_transform_asm( void );
extern void gl_init_all_x86_shade_asm( void );
extern void gl_init_all_x86_vertex_asm( void );
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment