[Mesa-dev] [RFC 29/63] mesa/formatquery: initial implementation for GetInternalformati64v
Eduardo Lima Mitev
elima at igalia.com
Tue Jan 19 08:42:09 PST 2016
From: Alejandro PiƱeiro <apinheiro at igalia.com>
It just does a wrapping on the existing 32-bit GetInternalformativ.
We will maintain the 32-bit query as default as it is likely that
it would be the one most used.
---
src/mesa/main/formatquery.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/formatquery.c b/src/mesa/main/formatquery.c
index bce9223..8c1f280 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -1019,6 +1019,9 @@ void GLAPIENTRY
_mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
GLenum pname, GLsizei bufSize, GLint64 *params)
{
+ GLint params32[16];
+ unsigned i;
+
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
@@ -1028,5 +1031,8 @@ _mesa_GetInternalformati64v(GLenum target, GLenum internalformat,
return;
}
- _mesa_debug(ctx, "glGetInternalformati64v() not implemented");
+ _mesa_GetInternalformativ(target, internalformat, pname, bufSize, params32);
+
+ for (i = 0; i < bufSize; i++)
+ params[i] = params32[i];
}
--
2.5.3
More information about the mesa-dev
mailing list