summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-08-03 02:54:52 +0200
committerMarek Olšák <[email protected]>2014-08-11 21:53:57 +0200
commitc6cbde5008e27cccb06411146bc673835991ae91 (patch)
treeab62bd9fbe95d9398e8300a06deaa65ba6128086 /src/gallium/include
parent0127d26e6c25974a84102fba2f556e260ccbcaeb (diff)
gallium/stapi: move setting GL versions to the state tracker
All flags are set for st/mesa, so the state tracker doesn't have to check them. Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/state_tracker/st_api.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h
index 46f0436c043..4e563330c4d 100644
--- a/src/gallium/include/state_tracker/st_api.h
+++ b/src/gallium/include/state_tracker/st_api.h
@@ -486,6 +486,16 @@ struct st_api
void (*destroy)(struct st_api *stapi);
/**
+ * Query supported OpenGL versions. (if applicable)
+ * The format is (major*10+minor).
+ */
+ void (*query_versions)(struct st_api *stapi, struct st_manager *sm,
+ int *gl_core_version,
+ int *gl_compat_version,
+ int *gl_es1_version,
+ int *gl_es2_version);
+
+ /**
* Return an API entry point.
*
* For GL this is the same as _glapi_get_proc_address.