OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bda9094
)
st/mesa: enable tessellation if the driver supports it
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 22 Feb 2015 18:50:42 +0000
(19:50 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 22 Jul 2015 22:59:30 +0000
(
00:59
+0200)
src/mesa/state_tracker/st_extensions.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_extensions.c
b/src/mesa/state_tracker/st_extensions.c
index
899442f
..
dc5cdfd
100644
(file)
--- a/
src/mesa/state_tracker/st_extensions.c
+++ b/
src/mesa/state_tracker/st_extensions.c
@@
-747,6
+747,11
@@
void st_init_extensions(struct pipe_screen *screen,
#endif
}
+ if (screen->get_shader_param(screen, PIPE_SHADER_TESS_CTRL,
+ PIPE_SHADER_CAP_MAX_INSTRUCTIONS) > 0) {
+ extensions->ARB_tessellation_shader = GL_TRUE;
+ }
+
if (screen->get_param(screen, PIPE_CAP_PRIMITIVE_RESTART)) {
extensions->NV_primitive_restart = GL_TRUE;
}