From: Dave Airlie Date: Sun, 29 May 2016 20:56:52 +0000 (+1000) Subject: mesa/xfb: report calculated size for XFB buffer objects. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bac39dddcf28d9d2df2f60c8dbb384c54366ed73;p=mesa.git mesa/xfb: report calculated size for XFB buffer objects. This fixes: GL45-CTS.direct_state_access.xfb_buffers This test looks correct to me, we should work out the size value and report it rather than using only the size from the Range interface. Reviewed-by: Marek Olšák Signed-off-by: Dave Airlie --- diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 9c06bc84009..7c0ff6fc896 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -1291,12 +1291,13 @@ _mesa_GetTransformFeedbacki64_v(GLuint xfb, GLenum pname, GLuint index, return; } + compute_transform_feedback_buffer_sizes(obj); switch(pname) { case GL_TRANSFORM_FEEDBACK_BUFFER_START: *param = obj->Offset[index]; break; case GL_TRANSFORM_FEEDBACK_BUFFER_SIZE: - *param = obj->RequestedSize[index]; + *param = obj->Size[index]; break; default: _mesa_error(ctx, GL_INVALID_ENUM,