https://bugs.freedesktop.org/show_bug.cgi?id=106450
Bug ID: 106450
Summary: glGetIntegerv return wrong value in some cases
Product: Mesa
Version: unspecified
Hardware: ARM
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
Assignee: mesa-dev@lists.freedesktop.org
Reporter: xuelian....@samsung.com
QA Contact: mesa-dev@lists.freedesktop.org
I use this version: Mesa 18.1.0-rc2 c2768b8a51d74bee1d189726d1a07a7a195689f7
And I run mesa on Tizen4.0 RPI3, but this bug is not related with platform.
The problem is,
glGetIntegerv(GL_VERTEX_ARRAY_SIZE/VERTEX_ARRAY_STRIDE/NORMAL_ARRAY_STRIDE/COLOR_ARRAY_STRIDE/TEXTURE_COORD_ARRAY_SIZE/TEXTURE_COORD_ARRAY_STRIDEPOINT_SIZE_ARRAY_STRIDE_OES)
return wrong size.
The reason is, in struct gl_array_attributes, the type of member Size is
GLubyte, and member Stride is short, but, in get_hash_params.py, things are
different, there are sentences like
"ARRAY_INT(VertexAttrib[VERT_ATTRIB_POS].Size)),
ARRAY_INT(VertexAttrib[VERT_ATTRIB_POS].Stride)", so in function
_mesa_GetIntegerv(), the type is wrong, the size will be wrong by wrong
explicit conversion.
I have make a patch for tizen, https://review.tizen.org/gerrit/#/c/178290/
With this patch, related test cases could pass on Tizen4.0 RPI3.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev