mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 09:50:08 +01:00
dri: Remove driver date from renderer string
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
This commit is contained in:
parent
9996a86085
commit
0fe34b7bbc
16 changed files with 14 additions and 50 deletions
|
|
@ -96,7 +96,6 @@ driParseDebugString( const char * debug,
|
|||
*
|
||||
* \param buffer Buffer to hold the \c GL_RENDERER string.
|
||||
* \param hardware_name Name of the hardware.
|
||||
* \param driver_date Driver date.
|
||||
* \param agp_mode AGP mode (speed).
|
||||
*
|
||||
* \returns
|
||||
|
|
@ -105,12 +104,12 @@ driParseDebugString( const char * debug,
|
|||
*/
|
||||
unsigned
|
||||
driGetRendererString( char * buffer, const char * hardware_name,
|
||||
const char * driver_date, GLuint agp_mode )
|
||||
GLuint agp_mode )
|
||||
{
|
||||
unsigned offset;
|
||||
char *cpu;
|
||||
|
||||
offset = sprintf( buffer, "Mesa DRI %s %s", hardware_name, driver_date );
|
||||
offset = sprintf( buffer, "Mesa DRI %s", hardware_name );
|
||||
|
||||
/* Append any AGP-specific information.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ extern unsigned driParseDebugString( const char * debug,
|
|||
const struct dri_debug_control * control );
|
||||
|
||||
extern unsigned driGetRendererString( char * buffer,
|
||||
const char * hardware_name, const char * driver_date, GLuint agp_mode );
|
||||
const char * hardware_name, GLuint agp_mode );
|
||||
|
||||
extern void driInitExtensions( struct gl_context * ctx,
|
||||
const struct dri_extension * card_extensions, GLboolean enable_imaging );
|
||||
|
|
|
|||
|
|
@ -67,8 +67,6 @@ int I810_DEBUG = (0);
|
|||
PUBLIC const char __driConfigOptions[] = { 0 };
|
||||
const GLuint __driNConfigOptions = 0;
|
||||
|
||||
#define DRIVER_DATE "20050821"
|
||||
|
||||
static const GLubyte *i810GetString( struct gl_context *ctx, GLenum name )
|
||||
{
|
||||
static char buffer[128];
|
||||
|
|
@ -88,7 +86,7 @@ static const GLubyte *i810GetString( struct gl_context *ctx, GLenum name )
|
|||
default: chipset = "Unknown i810-class Chipset"; break;
|
||||
}
|
||||
|
||||
(void) driGetRendererString( buffer, chipset, DRIVER_DATE, 0 );
|
||||
(void) driGetRendererString( buffer, chipset, 0 );
|
||||
return (GLubyte *) buffer;
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -62,10 +62,6 @@ int INTEL_DEBUG = (0);
|
|||
#endif
|
||||
|
||||
|
||||
#define DRIVER_DATE "20100330 DEVELOPMENT"
|
||||
#define DRIVER_DATE_GEM "GEM " DRIVER_DATE
|
||||
|
||||
|
||||
static const GLubyte *
|
||||
intelGetString(struct gl_context * ctx, GLenum name)
|
||||
{
|
||||
|
|
@ -182,7 +178,7 @@ intelGetString(struct gl_context * ctx, GLenum name)
|
|||
break;
|
||||
}
|
||||
|
||||
(void) driGetRendererString(buffer, chipset, DRIVER_DATE_GEM, 0);
|
||||
(void) driGetRendererString(buffer, chipset, 0);
|
||||
return (GLubyte *) buffer;
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -37,8 +37,6 @@
|
|||
|
||||
#include "utils.h"
|
||||
|
||||
#define DRIVER_DATE "20051019"
|
||||
|
||||
/* Return the current color buffer size.
|
||||
*/
|
||||
static void mach64DDGetBufferSize( struct gl_framebuffer *buffer,
|
||||
|
|
@ -70,8 +68,7 @@ static const GLubyte *mach64DDGetString( struct gl_context *ctx, GLenum name )
|
|||
|
||||
case GL_RENDERER:
|
||||
|
||||
offset = driGetRendererString( buffer, card_name, DRIVER_DATE,
|
||||
agp_mode );
|
||||
offset = driGetRendererString( buffer, card_name, agp_mode );
|
||||
return (GLubyte *)buffer;
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -35,9 +35,6 @@
|
|||
#include "mga_xmesa.h"
|
||||
#include "utils.h"
|
||||
|
||||
#define DRIVER_DATE "20071017"
|
||||
|
||||
|
||||
/***************************************
|
||||
* Mesa's Driver Functions
|
||||
***************************************/
|
||||
|
|
@ -57,7 +54,6 @@ static const GLubyte *mgaGetString( struct gl_context *ctx, GLenum name )
|
|||
offset = driGetRendererString( buffer,
|
||||
MGA_IS_G400(mmesa) ? "G400" :
|
||||
MGA_IS_G200(mmesa) ? "G200" : "MGA",
|
||||
DRIVER_DATE,
|
||||
mmesa->mgaScreen->agpMode );
|
||||
|
||||
return (GLubyte *)buffer;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ nouveau_get_string(struct gl_context *ctx, GLenum name)
|
|||
|
||||
case GL_RENDERER:
|
||||
sprintf(hardware_name, "nv%02X", context_chipset(ctx));
|
||||
driGetRendererString(buffer, hardware_name, DRIVER_DATE, 0);
|
||||
driGetRendererString(buffer, hardware_name, 0);
|
||||
|
||||
return (GLubyte *)buffer;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@
|
|||
#include "nouveau_surface.h"
|
||||
#include "nv04_pushbuf.h"
|
||||
|
||||
#define DRIVER_DATE "20091015"
|
||||
#define DRIVER_AUTHOR "Nouveau"
|
||||
|
||||
struct nouveau_driver {
|
||||
|
|
|
|||
|
|
@ -40,9 +40,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include "utils.h"
|
||||
|
||||
#define DRIVER_DATE "20051027"
|
||||
|
||||
|
||||
/* Return the width and height of the current color buffer.
|
||||
*/
|
||||
static void r128GetBufferSize( struct gl_framebuffer *buffer,
|
||||
|
|
@ -82,8 +79,7 @@ static const GLubyte *r128GetString( struct gl_context *ctx, GLenum name )
|
|||
card_name = "Rage 128 Mobility";
|
||||
}
|
||||
|
||||
offset = driGetRendererString( buffer, card_name, DRIVER_DATE,
|
||||
agp_mode );
|
||||
offset = driGetRendererString( buffer, card_name, agp_mode );
|
||||
|
||||
return (GLubyte *)buffer;
|
||||
|
||||
|
|
|
|||
|
|
@ -76,8 +76,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include "main/remap_helper.h"
|
||||
|
||||
#define DRIVER_DATE "20060602"
|
||||
|
||||
#include "utils.h"
|
||||
#include "xmlpool.h" /* for symbolic values of enum-type options */
|
||||
|
||||
|
|
@ -96,8 +94,7 @@ static const GLubyte *r200GetString( struct gl_context *ctx, GLenum name )
|
|||
return (GLubyte *)"Tungsten Graphics, Inc.";
|
||||
|
||||
case GL_RENDERER:
|
||||
offset = driGetRendererString( buffer, "R200", DRIVER_DATE,
|
||||
agp_mode );
|
||||
offset = driGetRendererString( buffer, "R200", agp_mode );
|
||||
|
||||
sprintf( & buffer[ offset ], " %sTCL",
|
||||
!(rmesa->radeon.TclFallback & R200_TCL_FALLBACK_TCL_DISABLE)
|
||||
|
|
|
|||
|
|
@ -47,8 +47,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include "swrast_setup/swrast_setup.h"
|
||||
#include "tnl/tnl.h"
|
||||
|
||||
#define DRIVER_DATE "20090101"
|
||||
|
||||
#ifndef RADEON_DEBUG
|
||||
int RADEON_DEBUG = (0);
|
||||
#endif
|
||||
|
|
@ -146,8 +144,7 @@ static const GLubyte *radeonGetString(struct gl_context * ctx, GLenum name)
|
|||
get_chip_family_name(radeon->radeonScreen->chip_family),
|
||||
radeon->radeonScreen->device_id);
|
||||
|
||||
offset = driGetRendererString(buffer, hardwarename, DRIVER_DATE,
|
||||
agp_mode);
|
||||
offset = driGetRendererString(buffer, hardwarename, agp_mode);
|
||||
|
||||
if (IS_R600_CLASS(radeon->radeonScreen)) {
|
||||
sprintf(&buffer[offset], " TCL");
|
||||
|
|
|
|||
|
|
@ -70,8 +70,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define need_GL_OES_EGL_image
|
||||
#include "main/remap_helper.h"
|
||||
|
||||
#define DRIVER_DATE "20061018"
|
||||
|
||||
#include "utils.h"
|
||||
#include "xmlpool.h" /* for symbolic values of enum-type options */
|
||||
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@
|
|||
#include "utils.h"
|
||||
|
||||
|
||||
#define DRIVER_DATE "20061110"
|
||||
|
||||
/***************************************
|
||||
* Mesa's Driver Functions
|
||||
***************************************/
|
||||
|
|
@ -71,7 +69,7 @@ static const GLubyte *savageDDGetString( struct gl_context *ctx, GLenum name )
|
|||
case GL_VENDOR:
|
||||
return (GLubyte *)"S3 Graphics Inc.";
|
||||
case GL_RENDERER:
|
||||
offset = driGetRendererString( buffer, cardNames[chipset], DRIVER_DATE,
|
||||
offset = driGetRendererString( buffer, cardNames[chipset],
|
||||
screen->agpMode );
|
||||
return (GLubyte *)buffer;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -45,8 +45,6 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include "utils.h"
|
||||
|
||||
#define DRIVER_DATE "20060710"
|
||||
|
||||
/* Return the width and height of the given buffer.
|
||||
*/
|
||||
static void
|
||||
|
|
@ -78,7 +76,7 @@ sisGetString( struct gl_context *ctx, GLenum name )
|
|||
return (GLubyte *)"Eric Anholt";
|
||||
|
||||
case GL_RENDERER:
|
||||
offset = driGetRendererString( buffer, "SiS", DRIVER_DATE, agp_mode );
|
||||
offset = driGetRendererString( buffer, "SiS", agp_mode );
|
||||
|
||||
return (GLubyte *)buffer;
|
||||
|
||||
|
|
|
|||
|
|
@ -41,9 +41,6 @@
|
|||
#include "main/context.h"
|
||||
|
||||
|
||||
#define DRIVER_DATE "20061113"
|
||||
|
||||
|
||||
/* These are used in calls to FX_grColorMaskv() */
|
||||
const GLboolean false4[4] = { GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE };
|
||||
const GLboolean true4[4] = { GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE };
|
||||
|
|
@ -91,7 +88,7 @@ static const GLubyte *tdfxDDGetString( struct gl_context *ctx, GLenum name )
|
|||
}
|
||||
}
|
||||
|
||||
(void) driGetRendererString(buffer, hardware, DRIVER_DATE, 0);
|
||||
(void) driGetRendererString(buffer, hardware, 0);
|
||||
return (const GLubyte *) buffer;
|
||||
}
|
||||
case GL_VENDOR:
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@
|
|||
#define need_GL_EXT_secondary_color
|
||||
#include "main/remap_helper.h"
|
||||
|
||||
#define DRIVER_DATE "20060710"
|
||||
|
||||
#include "vblank.h"
|
||||
#include "utils.h"
|
||||
|
||||
|
|
@ -100,7 +98,7 @@ static const GLubyte *viaGetString(struct gl_context *ctx, GLenum name)
|
|||
|
||||
offset = driGetRendererString( buffer,
|
||||
chipset_names[(id > VIA_PM800) ? 0 : id],
|
||||
DRIVER_DATE, 0 );
|
||||
0 );
|
||||
return (GLubyte *)buffer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue