diff options
author | Kenneth Graunke <[email protected]> | 2017-05-18 11:43:53 +0200 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2017-06-01 08:44:34 +0200 |
commit | 83e74d7dc14ee0f31652cd2a6c0bb66380458f2b (patch) | |
tree | 10f9620da2f75899080e87f30021b0f202c14d5f /scons/llvm.py | |
parent | 102044870042d0e5e51ef0b88e91a9d59a8fda5b (diff) |
mesa/main: Clamp GetUniformuiv values to be >= 0
Section 2.2.2 (Data Conversions For State Query Commands) of the
OpenGL 4.5 October 24th 2016 specification says:
"If a command returning unsigned integer data is called, such as
GetSamplerParameterIuiv, negative values are clamped to zero."
v2: uint to int conversion should clamp to INT_MAX (Nicolai)
v3 (Iago)
- Add conversions conversions from 64-bit integer paths
- Rebase on master
v4:
- need unsigned rounding for float/double->uint conversions (Nicolai)
- use round{f}() instead of IROUND() macros (Iago)
Fixes:
KHR-GL45.gpu_shader_fp64.state_query
Reviewed-by: Nicolai Hähnle <[email protected]> (v2)
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'scons/llvm.py')
0 files changed, 0 insertions, 0 deletions