mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
gallium: Add st_api::name.
It is the name of the rendering API. This field is informative.
This commit is contained in:
parent
cc5c908d7d
commit
28105471af
5 changed files with 13 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ env = env.Clone()
|
|||
env.Append(CPPPATH = [
|
||||
'#/src/mapi',
|
||||
])
|
||||
env.Append(CPPDEFINES = [
|
||||
'VEGA_VERSION_STRING=',
|
||||
])
|
||||
|
||||
vega_sources = [
|
||||
'api.c',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue