<div dir="ltr"><div>I don't think this is correct. The non-indexed binding point (which BindBuffer, BufferData uses) is distinct from the 0'th indexed binding point (which BindBuffer{Base,Range} use).<br><br></div>- Chris<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 30, 2015 at 1:10 PM, Jordan Justen <span dir="ltr"><<a href="mailto:jordan.l.justen@intel.com" target="_blank">jordan.l.justen@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The command is:<br>
<br>
ssbo <size><br>
<br>
where <size> is the size in bytes to allocate for the SSBO buffer.<br>
<br>
This command only sets of a buffer for SSBO index 0.<br>
<br>
Signed-off-by: Jordan Justen <<a href="mailto:jordan.l.justen@intel.com">jordan.l.justen@intel.com</a>><br>
---<br>
tests/shaders/shader_runner.c | 8 ++++++++<br>
1 file changed, 8 insertions(+)<br>
<br>
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c<br>
index e8c3aaa..32ac7bd 100644<br>
--- a/tests/shaders/shader_runner.c<br>
+++ b/tests/shaders/shader_runner.c<br>
@@ -113,6 +113,7 @@ GLenum geometry_layout_input_type = GL_TRIANGLES;<br>
GLenum geometry_layout_output_type = GL_TRIANGLE_STRIP;<br>
GLint geometry_layout_vertices_out = 0;<br>
GLuint atomics_bo = 0;<br>
+GLuint ssbo = 0;<br>
<br>
#define SHADER_TYPES 6<br>
static GLuint *subuniform_locations[SHADER_TYPES];<br>
@@ -2898,6 +2899,13 @@ piglit_display(void)<br>
glShadeModel(GL_SMOOTH);<br>
} else if (string_match("shade model flat", line)) {<br>
glShadeModel(GL_FLAT);<br>
+ } else if (sscanf(line, "ssbo %d", &x) == 1) {<br>
+ GLuint *ssbo_init = calloc(x, 1);<br>
+ glGenBuffers(1, &ssbo);<br>
+ glBindBufferBase(GL_SHADER_STORAGE_BUFFER, 0, ssbo);<br>
+ glBufferData(GL_SHADER_STORAGE_BUFFER, x,<br>
+ ssbo_init, GL_DYNAMIC_DRAW);<br>
+ free(ssbo_init);<br>
} else if (sscanf(line, "texture rgbw %d ( %d", &tex, &w) == 2) {<br>
GLenum int_fmt = GL_RGBA;<br>
int num_scanned =<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.1<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div>