glsl: make ssbo predicate return true when in a GLSL 430 or ESSL 310 shader
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Apr 2016 01:50:22 +0000 (21:50 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Apr 2016 22:06:49 +0000 (18:06 -0400)
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 <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/lower_ubo_reference.cpp

index d6269f7cbacc4b5719bd34c54b9ba23d21bc025f..3155ab6225e3bd0351b7cc1ee507fcb6f22cf978 100644 (file)
@@ -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