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

Ilia Mirkin imirkin at alum.mit.edu
Sun Aug 10 11:27:54 PDT 2014


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
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