Ian Romanick <[email protected]> writes:

> On 10/08/2013 02:09 PM, Eric Anholt wrote:
>
> With something done about the versioning comment below,
>
> Reviewed-by: Ian Romanick <[email protected]>

>> +    /* Make the buffer bigger than the data to trigger the driver
>> +     * code path we want.
>> +     */
>> +    glBufferData(GL_TEXTURE_BUFFER, 4096, NULL, GL_STREAM_DRAW);
>> +    glBufferSubData(GL_TEXTURE_BUFFER, 0, sizeof(g_rgba8), g_rgba8);
>> +
>> +    glGenTextures(1, &tex);
>> +    glBindTexture(GL_TEXTURE_BUFFER, tex);
>> +    glTexBuffer(GL_TEXTURE_BUFFER, GL_RGBA8, bo);
>> +
>> +    piglit_draw_rect(-1, -1, 1, 2);
>> +    glBufferSubData(GL_TEXTURE_BUFFER, 0, sizeof(b_rgba8), b_rgba8);
>> +    piglit_draw_rect(0, -1, 1, 2);
>> +
>> +    pass = pass && piglit_probe_rect_rgba(0, 0,
>> +                                          piglit_width / 2, piglit_height,
>> +                                          green);
>> +    pass = pass && piglit_probe_rect_rgba(piglit_width / 2, 0,
>> +                                          piglit_width / 2, piglit_height,
>> +                                          blue);
>> +
>> +    piglit_present_results();
>> +
>> +    return pass ? PIGLIT_PASS : PIGLIT_FAIL;
>> +}
>> +
>> +void
>> +piglit_init(int argc, char **argv)
>> +{
>> +    piglit_require_GLSL_version(140);
>> +    if (piglit_get_gl_version() < 31)
>
> I don't think anyone will exposed GLSL 1.40 without GL 3.1.  For this to
> be useful, the test should use a 1.20 shader with
> GL_ARB_texture_buffer_object enabled in the pre-3.1 case.

Not even Ironlake?

Attachment: pgpjzaONdE1QD.pgp
Description: PGP signature

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to