glsl/fp64: add helper for dual slot double detection.
authorDave Airlie <airlied@redhat.com>
Wed, 9 Dec 2015 06:06:46 +0000 (16:06 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Sat, 19 Dec 2015 00:59:49 +0000 (11:59 +1100)
commitd97b060e6f305ce4ad050881944404b920c86edf
tree5baec8bb4c9d990b311ae84d2f15dd4d6848c51f
parent9fbcd8e8475e249c7f76b6d63b3a48b8684cb1ff
glsl/fp64: add helper for dual slot double detection.

The old function didn't work for matrices, and we need this
in other places to fix some other problems, so move to a helper
in glsl type and fix the one user so far.

A dual slot double is one that has 3 or 4 components in it's
base type.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/glsl/ir_set_program_inouts.cpp
src/glsl/nir/glsl_types.h