diff options
author | Ilia Mirkin <[email protected]> | 2016-04-02 21:50:22 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-04-03 18:06:49 -0400 |
commit | aebb0e0186b6ed086c204c3c2989ae84b0cc1bf5 (patch) | |
tree | 4f39633415f4f203c998cdb6cf2078c4ba94ea9b /src/compiler/glsl | |
parent | 87906cbc37cb99089caa0be4346ebfbe2b7e2d3e (diff) |
glsl: make ssbo predicate return true when in a GLSL 430 or ESSL 310 shader
I can't tell whether this actually matters, but we're creating function
signatures with this predicate, so it should probably match when SSBO's
are available.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl')
-rw-r--r-- | src/compiler/glsl/lower_ubo_reference.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_ubo_reference.cpp b/src/compiler/glsl/lower_ubo_reference.cpp index d6269f7cbac..3155ab6225e 100644 --- a/src/compiler/glsl/lower_ubo_reference.cpp +++ b/src/compiler/glsl/lower_ubo_reference.cpp @@ -372,7 +372,8 @@ lower_ubo_reference_visitor::ubo_load(void *mem_ctx, static bool shader_storage_buffer_object(const _mesa_glsl_parse_state *state) { - return state->ARB_shader_storage_buffer_object_enable; + return state->ARB_shader_storage_buffer_object_enable || + state->is_version(430, 310); } uint32_t |