[Piglit] [PATCH] dsa/xfb: make the buffer large enough.

Dave Airlie airlied at gmail.com
Mon May 30 23:54:08 UTC 2016


From: Dave Airlie <airlied at redhat.com>

This bug in the test was triggered by a fix to mesa, the test creates
a backing buffer smaller than the xfb range it requests then is surprised
when it gets returned a truncated value for the size.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 tests/spec/arb_direct_state_access/gettransformfeedback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/spec/arb_direct_state_access/gettransformfeedback.c b/tests/spec/arb_direct_state_access/gettransformfeedback.c
index 8ea69bf..62d31a2 100644
--- a/tests/spec/arb_direct_state_access/gettransformfeedback.c
+++ b/tests/spec/arb_direct_state_access/gettransformfeedback.c
@@ -218,7 +218,7 @@ piglit_init(int argc, char **argv)
 		glBindBuffer(GL_TRANSFORM_FEEDBACK_BUFFER, xfb_buf[i]);
 		piglit_check_gl_error(GL_NO_ERROR);
 		glBufferData(GL_TRANSFORM_FEEDBACK_BUFFER,
-				 size, NULL, GL_STREAM_READ);
+			     start + size, NULL, GL_STREAM_READ);
 		piglit_check_gl_error(GL_NO_ERROR);
 		glTransformFeedbackBufferRange(0, i, xfb_buf[i], start, size);
 		piglit_check_gl_error(GL_NO_ERROR);
-- 
2.5.5



More information about the Piglit mailing list