diff options
author | Samuel Iglesias Gonsalvez <[email protected]> | 2014-12-11 23:34:15 +0100 |
---|---|---|
committer | Iago Toral Quiroga <[email protected]> | 2015-01-13 12:19:32 +0100 |
commit | 719e3f016ea69ffddd3bf14ec7a340def62ce464 (patch) | |
tree | e45602fc8c099c7f863b01e272faa5d1d9e04762 /src/mesa/main/formats.csv | |
parent | d8d59202af1d409ad2e10c2893612ff6fa05d3a2 (diff) |
main: round floating-point value to nearest integer in glGetSamplerParameteriv()
Previously, a cast was done to convert from float to int but there
were rounding errors.
The spec specificies in Data Conversion chapter that Floating-point values are
rounded to the nearest integer.
This patch fixes the following 2 dEQP tests:
dEQP-GLES3.functional.state_query.sampler.sampler_texture_min_lod_getsamplerparameteri
dEQP-GLES3.functional.state_query.sampler.sampler_texture_max_lod_getsamplerparameteri
Signed-off-by: Samuel Iglesias Gonsalvez <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.csv')
0 files changed, 0 insertions, 0 deletions