[Piglit] [PATCH 3/7] shader_runner: program must be in use for vertex data upload

Paul Berry stereotype441 at gmail.com
Tue Apr 30 15:20:47 PDT 2013


On 19 April 2013 12:05, Jordan Justen <jordan.l.justen at intel.com> wrote:

> If the shader_test wants to upload vertex data, then we make
> sure the program linked and is in use. If not, then the test
> will fail.
>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
>

Patches 2 and 3 are:

Reviewed-by: Paul Berry <stereotype441 at gmail.com>


> ---
>  tests/shaders/shader_runner.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
> index 9089f09..845e4ba 100644
> --- a/tests/shaders/shader_runner.c
> +++ b/tests/shaders/shader_runner.c
> @@ -1985,6 +1985,7 @@ piglit_init(int argc, char **argv)
>         process_test_script(argv[1]);
>         link_and_use_shaders();
>         if (vertex_data_start != NULL) {
> +               program_must_be_in_use();
>                 if (gl_version.num >= 31) {
>                         GLuint vao;
>
> --
> 1.7.10.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20130430/1e57d40e/attachment.html>


More information about the Piglit mailing list