[Piglit] [PATCH] fbo-drawbuffers: require at least 2 color attachments

Ilia Mirkin imirkin at alum.mit.edu
Sun Aug 10 11:31:00 PDT 2014


On Sun, Aug 10, 2014 at 2:27 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Also this requires npot support, or ideally to force the width/height to
> be powers of two.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>
> nouveau_vieux only supports 1 draw buffer, so I'm not bothering to fix

by which I of course mean 1 color attachment...

> the issue with width/height not being POT.
>
>  tests/fbo/fbo-drawbuffers.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/tests/fbo/fbo-drawbuffers.c b/tests/fbo/fbo-drawbuffers.c
> index 4b72f27..53aec87 100644
> --- a/tests/fbo/fbo-drawbuffers.c
> +++ b/tests/fbo/fbo-drawbuffers.c
> @@ -165,4 +165,8 @@ piglit_init(int argc, char **argv)
>         glGetIntegerv(GL_MAX_DRAW_BUFFERS_ARB, &num);
>         if (num < 2)
>                 piglit_report_result(PIGLIT_SKIP);
> +
> +       glGetIntegerv(GL_MAX_COLOR_ATTACHMENTS_EXT, &num);
> +       if (num < 2)
> +               piglit_report_result(PIGLIT_SKIP);
>  }
> --
> 1.8.5.5
>


More information about the Piglit mailing list