mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 10:40:36 +01:00
clean up header usage
This commit is contained in:
parent
080ae6edb5
commit
c3ded1b33d
5 changed files with 10 additions and 58 deletions
|
|
@ -46,10 +46,14 @@
|
|||
#include "radeon_context.h"
|
||||
#include "radeon_ioctl.h"
|
||||
#include "radeon_state.h"
|
||||
#include "radeon_subset.h"
|
||||
#include "radeon_tex.h"
|
||||
|
||||
#if _HAVE_FULL_GL
|
||||
#include "radeon_tcl.h"
|
||||
#include "radeon_vtxfmt.h"
|
||||
#include "radeon_tex.h"
|
||||
#else
|
||||
#include "radeon_subset.h"
|
||||
#endif
|
||||
|
||||
#if defined(USE_X86_ASM)
|
||||
#include "X86/common_x86_asm.h"
|
||||
|
|
@ -110,57 +114,6 @@ static const GLubyte *radeonGetString( GLcontext *ctx, GLenum name )
|
|||
case GL_RENDERER:
|
||||
sprintf( buffer, "Mesa DRI Radeon SUBSET " RADEON_DATE);
|
||||
|
||||
/* Append any chipset-specific information. None yet.
|
||||
*/
|
||||
|
||||
/* Append any AGP-specific information.
|
||||
*/
|
||||
switch ( rmesa->radeonScreen->AGPMode ) {
|
||||
case 1:
|
||||
strncat( buffer, " AGP 1x", 7 );
|
||||
break;
|
||||
case 2:
|
||||
strncat( buffer, " AGP 2x", 7 );
|
||||
break;
|
||||
case 4:
|
||||
strncat( buffer, " AGP 4x", 7 );
|
||||
break;
|
||||
}
|
||||
|
||||
/* Append any CPU-specific information.
|
||||
*/
|
||||
#ifdef USE_X86_ASM
|
||||
if ( _mesa_x86_cpu_features ) {
|
||||
strncat( buffer, " x86", 4 );
|
||||
}
|
||||
#ifdef USE_MMX_ASM
|
||||
if ( cpu_has_mmx ) {
|
||||
strncat( buffer, "/MMX", 4 );
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_3DNOW_ASM
|
||||
if ( cpu_has_3dnow ) {
|
||||
strncat( buffer, "/3DNow!", 7 );
|
||||
}
|
||||
#endif
|
||||
#ifdef USE_SSE_ASM
|
||||
if ( cpu_has_xmm ) {
|
||||
strncat( buffer, "/SSE", 4 );
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if ( rmesa->dri.drmMinor < 3 ) {
|
||||
strncat( buffer, " DRM-COMPAT", 11 );
|
||||
}
|
||||
|
||||
if ( !(rmesa->TclFallback & RADEON_TCL_FALLBACK_TCL_DISABLE) ) {
|
||||
strncat( buffer, " TCL", 4 );
|
||||
}
|
||||
else {
|
||||
strncat( buffer, " NO-TCL", 7 );
|
||||
}
|
||||
|
||||
return (GLubyte *)buffer;
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -439,8 +439,12 @@ struct radeon_hw_state {
|
|||
struct radeon_state_atom zbs;
|
||||
struct radeon_state_atom mtl;
|
||||
struct radeon_state_atom mat[5]; /**< \brief matrix transformations */
|
||||
#if _HAVE_LIGHTING
|
||||
struct radeon_state_atom lit[8]; /**< \brief includes vec, scl commands */
|
||||
#endif
|
||||
#if _HAVE_USERCLIP
|
||||
struct radeon_state_atom ucp[6];
|
||||
#endif
|
||||
struct radeon_state_atom eye; /**< \brief eye pos */
|
||||
struct radeon_state_atom grd; /**< \brief guard band clipping */
|
||||
struct radeon_state_atom fog; /**< \brief fog */
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@
|
|||
#include "radeon_context.h"
|
||||
#include "radeon_state.h"
|
||||
#include "radeon_ioctl.h"
|
||||
#include "radeon_tcl.h"
|
||||
#include "radeon_macros.h" /* for INREG() */
|
||||
#include <unistd.h> /* for usleep() */
|
||||
#include <errno.h>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include "glheader.h"
|
||||
#include "radeon_context.h"
|
||||
#include "radeon_lock.h"
|
||||
#include "radeon_tex.h"
|
||||
#include "radeon_state.h"
|
||||
#include "radeon_ioctl.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -53,9 +53,6 @@
|
|||
#include "radeon_context.h"
|
||||
#include "radeon_ioctl.h"
|
||||
#include "radeon_state.h"
|
||||
#include "radeon_tcl.h"
|
||||
#include "radeon_tex.h"
|
||||
#include "radeon_vtxfmt.h"
|
||||
|
||||
|
||||
#define MODEL_PROJ 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue