st/mesa: add st fp64 support (v7.1)
authorDave Airlie <airlied@redhat.com>
Tue, 17 Feb 2015 00:48:04 +0000 (10:48 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2015 00:06:56 +0000 (10:06 +1000)
commit8c6a0ebaad7224c40e55645b9c34aefe9b16542e
treeaae21b078ce70c6a8633c1a92dedb23a9ba62e0a
parent0178358a2d015a5fc8e3c7dfdd8ec4b1cfc64ea1
st/mesa: add st fp64 support (v7.1)

This adds support to the state tracker for
ARB_gpu_shader_fp64.

The details are explained in comments
within the code.

v2 : add double to int/unsigned conversion
v3: handle fp64 consts better
v4: use DRSQ
v4.1: add d2b
v4.2: drop DDIV

v5: split out some prep patches.
v5.1: add some comments.
v5.2: more comments

v6: simplify down the double instruction
    generation loop.

v7: Merge Ilia's two cleanup patches.
v7.1: minor fixups for Ilia patch + cleanups

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp