projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7241e1b
)
mesa/formatquery: initial implementation for GetInternalformati64v
author
Alejandro Piñeiro
<apinheiro@igalia.com>
Thu, 19 Nov 2015 10:37:37 +0000
(11:37 +0100)
committer
Eduardo Lima Mitev
<elima@igalia.com>
Thu, 3 Mar 2016 14:14:06 +0000
(15:14 +0100)
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.
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/formatquery.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formatquery.c
b/src/mesa/main/formatquery.c
index 0beb1a7905a9e2186eeb13616d264955c50481cc..14afe6fcf02dddfc0aa3023d32807f1a44c11fb1 100644
(file)
--- a/
src/mesa/main/formatquery.c
+++ b/
src/mesa/main/formatquery.c
@@
-1023,6
+1023,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);
@@
-1032,5
+1035,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];
}