freedreno/lowering: two-sided-color
authorRob Clark <robclark@freedesktop.org>
Sun, 23 Feb 2014 19:40:41 +0000 (14:40 -0500)
committerRob Clark <robclark@freedesktop.org>
Sun, 2 Mar 2014 16:26:35 +0000 (11:26 -0500)
commit26530716ab9398703f91285381033073f47e8bd4
treeb7d4c19fd40f508083ca0a9a86a9c07bac8ff122
parent8dd70125fc5ea45b206df50bac00f15d6e5da38c
freedreno/lowering: two-sided-color

Add option to generate fragment shader to emulate two sided color.
Additional inputs are added to shader for BCOLOR's (on corresponding to
each COLOR input).  CMP instructions are used to select whether to use
COLOR or BCOLOR.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_compiler.c
src/gallium/drivers/freedreno/a3xx/fd3_compiler_old.c
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/freedreno_lowering.c
src/gallium/drivers/freedreno/freedreno_lowering.h