mesa/main: Clamp GetUniformui64v values to be >= 0
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 18 May 2017 09:43:54 +0000 (11:43 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 1 Jun 2017 06:44:34 +0000 (08:44 +0200)
commitcc972c2845e7c8554918e3aaaab95c1581ff5599
tree6aa1e6802abaa422a4e20a7d35a877e9b9e3d4c6
parent83e74d7dc14ee0f31652cd2a6c0bb66380458f2b
mesa/main: Clamp GetUniformui64v values to be >= 0

Like we do for the 32-bit case.

v2:
  - need unsigned rounding for float->uint64 conversion (Nicolai)
  - use roundf() instead of IROUND() macros (Iago)

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/uniform_query.cpp