gallium: Add st_api::name.

It is the name of the rendering API.  This field is informative.
This commit is contained in:
Chia-I Wu
2010-11-17 23:56:42 +08:00
parent cc5c908d7d
commit 28105471af
5 changed files with 13 additions and 0 deletions

View File

@@ -401,6 +401,11 @@ struct st_manager
*/
struct st_api
{
/**
* The name of the rendering API. This is informative.
*/
const char *name;
/**
* The supported rendering API.
*/

View File

@@ -9,6 +9,9 @@ LIBRARY_INCLUDES = \
-I$(TOP)/include \
-I$(TOP)/src/mapi
LIBRARY_DEFINES = \
-DVEGA_VERSION_STRING=\"$(MESA_VERSION)\"
C_SOURCES = \
api.c \
api_context.c \

View File

@@ -8,6 +8,9 @@ env = env.Clone()
env.Append(CPPPATH = [
'#/src/mapi',
])
env.Append(CPPDEFINES = [
'VEGA_VERSION_STRING=',
])
vega_sources = [
'api.c',

View File

@@ -535,6 +535,7 @@ vg_api_destroy(struct st_api *stapi)
}
static const struct st_api vg_api = {
"Vega " VEGA_VERSION_STRING,
ST_API_OPENVG,
ST_PROFILE_DEFAULT_MASK,
vg_api_destroy,

View File

@@ -865,6 +865,7 @@ st_manager_add_color_renderbuffer(struct st_context *st, struct gl_framebuffer *
}
static const struct st_api st_gl_api = {
"Mesa " MESA_VERSION_STRING,
ST_API_OPENGL,
#if FEATURE_GL
ST_PROFILE_DEFAULT_MASK |