<div dir="auto">Can you go through all the others and work out the suffixes too? Just going by memory, but the vote extension functions have suffixes, as do the atomic counter ones, maybe there's other stuff too...</div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 2, 2017 2:15 PM, "Samuel Pitoiset" <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Other ones are either unsupported or don't have any helper<br>
function checks.<br>
<br>
v3: - always add gl_BaseVertex & co when 460 is enabled<br>
v2: - fix ARB_shader_draw_parameters system value names<br>
<br>
Signed-off-by: Samuel Pitoiset <<a href="mailto:samuel.pitoiset@gmail.com">samuel.pitoiset@gmail.com</a>><br>
---<br>
 src/compiler/glsl/builtin_<wbr>functions.cpp | 6 ++++--<br>
 src/compiler/glsl/builtin_<wbr>variables.cpp | 5 +++++<br>
 2 files changed, 9 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/compiler/glsl/builtin_<wbr>functions.cpp b/src/compiler/glsl/builtin_<wbr>functions.cpp<br>
index 84833bdd7d..5a0c78ec4a 100644<br>
--- a/src/compiler/glsl/builtin_<wbr>functions.cpp<br>
+++ b/src/compiler/glsl/builtin_<wbr>functions.cpp<br>
@@ -483,7 +483,8 @@ shader_atomic_counters(const _mesa_glsl_parse_state *state)<br>
 static bool<br>
 shader_atomic_counter_ops(<wbr>const _mesa_glsl_parse_state *state)<br>
 {<br>
-   return state->ARB_shader_atomic_<wbr>counter_ops_enable;<br>
+   return (state->is_version(460, 0) ||<br>
+           state->ARB_shader_atomic_<wbr>counter_ops_enable);<br>
 }<br>
<br>
 static bool<br>
@@ -606,7 +607,8 @@ barrier_supported(const _mesa_glsl_parse_state *state)<br>
 static bool<br>
 vote(const _mesa_glsl_parse_state *state)<br>
 {<br>
-   return state->ARB_shader_group_vote_<wbr>enable;<br>
+   return (state->is_version(460, 0) ||<br>
+           state->ARB_shader_group_vote_<wbr>enable);<br>
 }<br>
<br>
 static bool<br>
diff --git a/src/compiler/glsl/builtin_<wbr>variables.cpp b/src/compiler/glsl/builtin_<wbr>variables.cpp<br>
index 19d427e4bc..ea2d897cc8 100644<br>
--- a/src/compiler/glsl/builtin_<wbr>variables.cpp<br>
+++ b/src/compiler/glsl/builtin_<wbr>variables.cpp<br>
@@ -1017,6 +1017,11 @@ builtin_variable_generator::<wbr>generate_vs_special_vars()<br>
<br>
    if (state->is_version(130, 300))<br>
       add_system_value(SYSTEM_VALUE_<wbr>VERTEX_ID, int_t, "gl_VertexID");<br>
+   if (state->is_version(460, 0)) {<br>
+      add_system_value(SYSTEM_VALUE_<wbr>BASE_VERTEX, int_t, "gl_BaseVertex");<br>
+      add_system_value(SYSTEM_VALUE_<wbr>BASE_INSTANCE, int_t, "gl_BaseInstance");<br>
+      add_system_value(SYSTEM_VALUE_<wbr>DRAW_ID, int_t, "gl_DrawID");<br>
+   }<br>
    if (state->ARB_draw_instanced_<wbr>enable)<br>
       add_system_value(SYSTEM_VALUE_<wbr>INSTANCE_ID, int_t, "gl_InstanceIDARB");<br>
    if (state->ARB_draw_instanced_<wbr>enable || state->is_version(140, 300))<br>
--<br>
2.13.3<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>