summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/shader.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-12-01 11:54:58 +0800
committerChia-I Wu <[email protected]>2010-12-01 16:46:01 +0800
commitd7aa03b4feb7c30408b2ed3070e0fe33e2fd05ba (patch)
treeb8038c3a6346729b8289775031566ecffc5c8829 /src/gallium/state_trackers/vega/shader.c
parentc530fd3f8a5b5ac6918dece5d9083b2fac4ef78e (diff)
st/vega: Fix degenerate paints.
Fix the case that the two points of a linear gradient coincide, or the case that the radius of a radial gradient is equal to or less than 0.
Diffstat (limited to 'src/gallium/state_trackers/vega/shader.c')
-rw-r--r--src/gallium/state_trackers/vega/shader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/shader.c b/src/gallium/state_trackers/vega/shader.c
index a77587c6bff..483ff15098f 100644
--- a/src/gallium/state_trackers/vega/shader.c
+++ b/src/gallium/state_trackers/vega/shader.c
@@ -233,6 +233,9 @@ static void setup_shader_program(struct shader *shader)
default:
abort();
}
+
+ if (paint_is_degenerate(shader->paint))
+ shader_id = VEGA_PAINT_DEGENERATE_SHADER;
}
/* second stage image */