gallium: Add st_api::name.
It is the name of the rendering API. This field is informative.
This commit is contained in:
@@ -401,6 +401,11 @@ struct st_manager
|
|||||||
*/
|
*/
|
||||||
struct st_api
|
struct st_api
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The name of the rendering API. This is informative.
|
||||||
|
*/
|
||||||
|
const char *name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The supported rendering API.
|
* The supported rendering API.
|
||||||
*/
|
*/
|
||||||
|
@@ -9,6 +9,9 @@ LIBRARY_INCLUDES = \
|
|||||||
-I$(TOP)/include \
|
-I$(TOP)/include \
|
||||||
-I$(TOP)/src/mapi
|
-I$(TOP)/src/mapi
|
||||||
|
|
||||||
|
LIBRARY_DEFINES = \
|
||||||
|
-DVEGA_VERSION_STRING=\"$(MESA_VERSION)\"
|
||||||
|
|
||||||
C_SOURCES = \
|
C_SOURCES = \
|
||||||
api.c \
|
api.c \
|
||||||
api_context.c \
|
api_context.c \
|
||||||
|
@@ -8,6 +8,9 @@ env = env.Clone()
|
|||||||
env.Append(CPPPATH = [
|
env.Append(CPPPATH = [
|
||||||
'#/src/mapi',
|
'#/src/mapi',
|
||||||
])
|
])
|
||||||
|
env.Append(CPPDEFINES = [
|
||||||
|
'VEGA_VERSION_STRING=',
|
||||||
|
])
|
||||||
|
|
||||||
vega_sources = [
|
vega_sources = [
|
||||||
'api.c',
|
'api.c',
|
||||||
|
@@ -535,6 +535,7 @@ vg_api_destroy(struct st_api *stapi)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct st_api vg_api = {
|
static const struct st_api vg_api = {
|
||||||
|
"Vega " VEGA_VERSION_STRING,
|
||||||
ST_API_OPENVG,
|
ST_API_OPENVG,
|
||||||
ST_PROFILE_DEFAULT_MASK,
|
ST_PROFILE_DEFAULT_MASK,
|
||||||
vg_api_destroy,
|
vg_api_destroy,
|
||||||
|
@@ -865,6 +865,7 @@ st_manager_add_color_renderbuffer(struct st_context *st, struct gl_framebuffer *
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct st_api st_gl_api = {
|
static const struct st_api st_gl_api = {
|
||||||
|
"Mesa " MESA_VERSION_STRING,
|
||||||
ST_API_OPENGL,
|
ST_API_OPENGL,
|
||||||
#if FEATURE_GL
|
#if FEATURE_GL
|
||||||
ST_PROFILE_DEFAULT_MASK |
|
ST_PROFILE_DEFAULT_MASK |
|
||||||
|
Reference in New Issue
Block a user