mesa/get: Convert stencil values to TYPE_UINT.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 18 Dec 2016 04:04:32 +0000 (20:04 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Dec 2016 19:33:40 +0000 (11:33 -0800)
commit37d63b50b196afe61b4d7c33b1118a49a5e1e13f
tree29d038173647a9d9a93a18973507ce6b312be96f
parent9f93afb9a5586cb90e127ba7d63de3b416d08821
mesa/get: Convert stencil values to TYPE_UINT.

These are listed as Z+ in the GL spec, and often have values of
0xFFFFFFFF.  For glGetFloat, we should return 4294967295.0 rather than
-1.0.  Similarly, for glGetInteger64v, we should return 0xFFFFFFFF, not
the sign extended 0xFFFFFFFFFFFFFFFF.

Fixes 6 dEQP tests matching the pattern
dEQP-GLES3.functional.state_query.integers.stencil*value*mask*getfloat
when run in a single process (with state reset code happening between
tests, which makes dEQP set the stencil value mask to 0xFFFFFFFF).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/get_hash_params.py