aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/vega/shaders_cache.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/shaders_cache.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/shaders_cache.c')
-rw-r--r--src/gallium/state_trackers/vega/shaders_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/shaders_cache.c b/src/gallium/state_trackers/vega/shaders_cache.c
index 732d57de9a0..d1ebe7e6779 100644
--- a/src/gallium/state_trackers/vega/shaders_cache.c
+++ b/src/gallium/state_trackers/vega/shaders_cache.c
@@ -261,6 +261,7 @@ create_shader(struct pipe_context *pipe,
case VEGA_LINEAR_GRADIENT_SHADER:
case VEGA_RADIAL_GRADIENT_SHADER:
case VEGA_PATTERN_SHADER:
+ case VEGA_PAINT_DEGENERATE_SHADER:
shaders[idx] = &shaders_paint_asm[(sh >> SHADERS_PAINT_SHIFT) - 1];
assert(shaders[idx]->id == sh);
idx++;