Mesa (master): glsl: use has_shader_storage_buffer_objects helper
Ilia Mirkin
imirkin at kemper.freedesktop.org
Wed Apr 6 00:28:21 UTC 2016
Module: Mesa
Branch: master
Commit: 2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e123e1a25182c2e43bf8de1b7911fa6ffc00ae1
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Mon Apr 4 11:54:22 2016 -0400
glsl: use has_shader_storage_buffer_objects helper
Replaces open-coded logic with existing helper.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
---
src/compiler/glsl/lower_ubo_reference.cpp | 3 +--
1 file changed, 1 insertion(+), 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
More information about the mesa-commit
mailing list