st/glsl_to_tgsi: fix ir_assignment hack doing bad things for doubles
authorDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2015 03:58:18 +0000 (13:58 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 May 2015 00:21:01 +0000 (10:21 +1000)
commit731b7c49bb78d6d1be25f9010af0087146de0b48
tree0e56839dfbe3917de6a6cace22386e13012459bb
parentb1119ce838462ff533512188c969fc28ab6a89a9
st/glsl_to_tgsi: fix ir_assignment hack doing bad things for doubles

This hack for fixing gl_FragDepth apparantly caused a GLSL shader
outputting a single double to try and output a dvec4, but we hadn't
assigned outputs for the secondary bit.

This avoids going into the hack code for scalar doubles.

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