mesa: Add support for GL_EXT_shader_clock
Signed-off-by: Ashley Smith <ashley.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35630>
This commit is contained in:
@@ -720,13 +720,15 @@ supports_nv_fragment_shader_interlock(const _mesa_glsl_parse_state *state)
|
||||
static bool
|
||||
shader_clock(const _mesa_glsl_parse_state *state)
|
||||
{
|
||||
return state->ARB_shader_clock_enable;
|
||||
return state->ARB_shader_clock_enable ||
|
||||
state->EXT_shader_clock_enable;
|
||||
}
|
||||
|
||||
static bool
|
||||
shader_clock_int64(const _mesa_glsl_parse_state *state)
|
||||
{
|
||||
return state->ARB_shader_clock_enable &&
|
||||
return (state->ARB_shader_clock_enable ||
|
||||
state->EXT_shader_clock_enable) &&
|
||||
(state->ARB_gpu_shader_int64_enable ||
|
||||
state->AMD_gpu_shader_int64_enable);
|
||||
}
|
||||
|
||||
@@ -821,6 +821,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
|
||||
EXT_AEP(EXT_gpu_shader5),
|
||||
EXT_AEP(EXT_primitive_bounding_box),
|
||||
EXT(EXT_separate_shader_objects),
|
||||
EXT(EXT_shader_clock),
|
||||
EXT(EXT_shader_framebuffer_fetch),
|
||||
EXT(EXT_shader_framebuffer_fetch_non_coherent),
|
||||
EXT(EXT_shader_group_vote),
|
||||
|
||||
@@ -880,6 +880,8 @@ struct _mesa_glsl_parse_state {
|
||||
bool EXT_primitive_bounding_box_warn;
|
||||
bool EXT_separate_shader_objects_enable;
|
||||
bool EXT_separate_shader_objects_warn;
|
||||
bool EXT_shader_clock_enable;
|
||||
bool EXT_shader_clock_warn;
|
||||
bool EXT_shader_framebuffer_fetch_enable;
|
||||
bool EXT_shader_framebuffer_fetch_warn;
|
||||
bool EXT_shader_framebuffer_fetch_non_coherent_enable;
|
||||
|
||||
Reference in New Issue
Block a user