nir: In prog->nir, don't wrap dot products with ptn_channel(..., X).
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Mar 2015 12:17:56 +0000 (05:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 1 Apr 2015 20:30:13 +0000 (13:30 -0700)
commit4b38c5c783e8858f362bb1ff6cf651875bd0bbc5
tree280d5a7792181ada4792b3df644327c8e8246c39
parent218e45e2f7b2d6c20bbba837f6e5cbe15610771e
nir: In prog->nir, don't wrap dot products with ptn_channel(..., X).

ptn_move_dest and nir_fadd already take care of replicating the last
channel out, so we can just use a scalar and skip splatting it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_to_nir.c