summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_ubo_reference.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-04-04 11:54:22 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-04-05 20:27:32 -0400
commit2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1 (patch)
tree7eca0b1aedf84daddce801c22ca54195d7b380db /src/compiler/glsl/lower_ubo_reference.cpp
parent5d39f0380639c80731ed0df2bcfd04f0095d8481 (diff)
downloadexternal_mesa3d-2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1.zip
external_mesa3d-2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1.tar.gz
external_mesa3d-2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1.tar.bz2
glsl: use has_shader_storage_buffer_objects helper
Replaces open-coded logic with existing helper. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/compiler/glsl/lower_ubo_reference.cpp')
-rw-r--r--src/compiler/glsl/lower_ubo_reference.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler/glsl/lower_ubo_reference.cpp b/src/compiler/glsl/lower_ubo_reference.cpp
index 3155ab6..1a0140f 100644
--- a/src/compiler/glsl/lower_ubo_reference.cpp
+++ b/src/compiler/glsl/lower_ubo_reference.cpp
@@ -372,8 +372,7 @@ 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 ||
- state->is_version(430, 310);
+ return state->has_shader_storage_buffer_objects();
}
uint32_t