diff options
author | Chia-I Wu <[email protected]> | 2010-12-01 11:54:58 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-01 16:46:01 +0800 |
commit | d7aa03b4feb7c30408b2ed3070e0fe33e2fd05ba (patch) | |
tree | b8038c3a6346729b8289775031566ecffc5c8829 /src/gallium/state_trackers/vega/paint.h | |
parent | c530fd3f8a5b5ac6918dece5d9083b2fac4ef78e (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/paint.h')
-rw-r--r-- | src/gallium/state_trackers/vega/paint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vega/paint.h b/src/gallium/state_trackers/vega/paint.h index 2e09b839a4a..3de3bbe12ed 100644 --- a/src/gallium/state_trackers/vega/paint.h +++ b/src/gallium/state_trackers/vega/paint.h @@ -110,6 +110,8 @@ VGboolean paint_color_ramp_premultiplied(struct vg_paint *paint); VGint paint_bind_samplers(struct vg_paint *paint, struct pipe_sampler_state **samplers, struct pipe_sampler_view **sampler_views); +VGboolean paint_is_degenerate(struct vg_paint *paint); + VGint paint_constant_buffer_size(struct vg_paint *paint); void paint_fill_constant_buffer(struct vg_paint *paint, |