Commit 671289c3 authored by Dave Airlie's avatar Dave Airlie

arb_shader_storage_buffer_object: add missing GLSL versions.

No GLSL version implies GLSL 1.10, but that isn't supported by
fglrx in core profiles.

This lets the tests run and fail in more interesting ways on fglrx.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 718b3fc6
......@@ -76,6 +76,7 @@ piglit_display(void)
"}\n";
const char *fs_template =
"#version 130\n"
"#extension GL_ARB_shader_storage_buffer_object : enable\n"
"\n"
"varying vec4 vary;"
......@@ -94,6 +95,7 @@ piglit_display(void)
"}\n";
const char *fs_ssbo_template =
"#version 130\n"
"#extension GL_ARB_shader_storage_buffer_object : enable\n"
"#extension GL_ARB_uniform_buffer_object : enable\n"
"\n"
......
......@@ -73,6 +73,7 @@ get_shader(GLenum target, const char *block_prefix, int blocks)
" v = vec4(0)%s;\n"
"}\n";
const char *fs_source =
"#version 130\n"
"#extension GL_ARB_shader_storage_buffer_object : enable\n"
"#extension GL_ARB_uniform_buffer_object : enable\n"
"\n"
......
......@@ -58,6 +58,7 @@ static const char vert_shader_text[] =
"}\n";
static const char frag_shader_text[] =
"#version 130\n"
"#extension GL_ARB_shader_storage_buffer_object : require\n"
"\n"
"buffer ssbo_color { vec4 color; float color_scale; };\n"
......
......@@ -53,6 +53,7 @@ PIGLIT_GL_TEST_CONFIG_END
static GLuint prog;
static const char frag_shader_text[] =
"#version 130\n"
"#extension GL_ARB_shader_storage_buffer_object : require\n"
"\n"
"buffer ssbo_a { vec4 a; };\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment