This is the GLES equivalent to ARB_shader_group_vote.
Passes: KHR-GLES31.core.shader_group_vote.*
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5490>
GL_EXT_semaphore DONE (radeonsi)
GL_EXT_semaphore_fd DONE (radeonsi)
GL_EXT_semaphore_win32 not started
+ GL_EXT_shader_group_vote DONE (all drivers that support ARB_shader_group_vote)
GL_EXT_sRGB_write_control DONE (all drivers that support GLES 3.0+)
GL_EXT_texture_norm16 DONE (freedreno, i965, r600, radeonsi, nvc0)
GL_EXT_texture_sRGB_R8 DONE (all drivers that support GLES 3.0+)
GL_ARB_compute_variable_group_size on Iris.
+GL_EXT_shader_group_vote on GLES3.
VK_AMD_texture_gather_bias_lod on RADV.
VK_EXT_private_data on ANV and RADV.
VK_EXT_custom_border_color on RADV.
return state->ARB_shader_group_vote_enable;
}
+static bool
+vote_ext(const _mesa_glsl_parse_state *state)
+{
+ return state->EXT_shader_group_vote_enable;
+}
+
static bool
vote_or_v460_desktop(const _mesa_glsl_parse_state *state)
{
- return state->ARB_shader_group_vote_enable || v460_desktop(state);
+ return state->EXT_shader_group_vote_enable || state->ARB_shader_group_vote_enable || v460_desktop(state);
}
static bool
_vote("__intrinsic_vote_eq", vote),
NULL);
+ add_function("anyInvocationEXT",
+ _vote("__intrinsic_vote_any", vote_ext),
+ NULL);
+
+ add_function("allInvocationsEXT",
+ _vote("__intrinsic_vote_all", vote_ext),
+ NULL);
+
+ add_function("allInvocationsEqualEXT",
+ _vote("__intrinsic_vote_eq", vote_ext),
+ NULL);
+
add_function("anyInvocation",
_vote("__intrinsic_vote_any", v460_desktop),
NULL);
EXT(EXT_separate_shader_objects),
EXT(EXT_shader_framebuffer_fetch),
EXT(EXT_shader_framebuffer_fetch_non_coherent),
+ EXT(EXT_shader_group_vote),
EXT(EXT_shader_image_load_formatted),
EXT(EXT_shader_image_load_store),
EXT(EXT_shader_implicit_conversions),
bool EXT_shader_framebuffer_fetch_warn;
bool EXT_shader_framebuffer_fetch_non_coherent_enable;
bool EXT_shader_framebuffer_fetch_non_coherent_warn;
+ bool EXT_shader_group_vote_enable;
+ bool EXT_shader_group_vote_warn;
bool EXT_shader_image_load_formatted_enable;
bool EXT_shader_image_load_formatted_warn;
bool EXT_shader_image_load_store_enable;
EXT(EXT_separate_specular_color , dummy_true , GLL, x , x , x , 1997)
EXT(EXT_shader_framebuffer_fetch , EXT_shader_framebuffer_fetch , GLL, GLC, x , ES2, 2013)
EXT(EXT_shader_framebuffer_fetch_non_coherent, EXT_shader_framebuffer_fetch_non_coherent, GLL, GLC, x, ES2, 2018)
+EXT(EXT_shader_group_vote , ARB_shader_group_vote , x, x, x , 30, 2013)
EXT(EXT_shader_image_load_formatted , EXT_shader_image_load_formatted , GLL, GLC, x , x , 2014)
EXT(EXT_shader_image_load_store , EXT_shader_image_load_store , GLL, GLC, x , x , 2010)
EXT(EXT_shader_implicit_conversions , dummy_true , x , x , x , 31, 2013)