[Mesa-dev] vertex shader that processes 0 vertex data
Dave Airlie
airlied at gmail.com
Tue Aug 31 23:14:21 PDT 2010
I was looking at glsl-vs-point-size in piglit today and it doesn't
work on gallium.
void main()
{
gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
gl_PointSize = 16.0;
gl_FrontColor = vec4(1.0, 1.0, 1.0, 1.0);
}
Since the vertex shader doesn't have any declared inputs,
we work out the vp in gallium and then in st_draw.c:st_draw_vbo we hit
if (num_vbuffers == 0 || num_velements == 0)
return;
Any ideas on what should happen here?
Dave.
More information about the mesa-dev
mailing list