mesa/uniform_query: add IROUNDD and use for doubles->ints (v2)
authorDave Airlie <airlied@redhat.com>
Thu, 15 Oct 2015 04:07:40 +0000 (05:07 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Jan 2016 02:27:51 +0000 (02:27 +0000)
commita9eace326ece7496109a8e2a55aae8fc802e89d8
treeaf391221f728469eff4593724f1ff15f939807a7
parent124c9c2b977013f540f417d5dd102775ad02c77d
mesa/uniform_query: add IROUNDD and use for doubles->ints (v2)

For the case where we convert a double to an int, we should
round the same as we do for floats.

This fixes GL41-CTS.gpu_shader_fp64.state_query

v2: add IROUNDD (Ilia)

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/imports.h
src/mesa/main/uniform_query.cpp