r600/shader: only emit add instruction if param has a value.
authorDave Airlie <airlied@redhat.com>
Wed, 10 Jan 2018 02:56:15 +0000 (02:56 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Jan 2018 03:34:43 +0000 (03:34 +0000)
commit7efcafce7c6dd3dc9e71c7d35d6f7ebfd88f106b
tree4971a44a00c609e4c4acb7f5eadc0c43ab21bd13
parent2bd01adf146b3a16179a5b1305444305ce26ed2e
r600/shader: only emit add instruction if param has a value.

Just saves a pointless a = a + 0;

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_shader.c