[Mesa-dev] [PATCH 29/65] mesa/formatquery: initial implementation for GetInternalformati64v

Eduardo Lima Mitev elima at igalia.com
Wed Feb 3 15:45:14 UTC 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 8c590f9..ce384a0 100644
--- a/src/mesa/main/formatquery.c
+++ b/src/mesa/main/formatquery.c
@@ -1015,6 +1015,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);
@@ -1024,5 +1027,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