Home
last modified time | relevance | path

Searched refs:ramp_stops (Results 1 – 1 of 1) sorted by relevance

/external/mesa3d/src/gallium/state_trackers/vega/
Dpaint.c65 VGfloat *ramp_stops; member
103 static INLINE void create_gradient_data(const VGfloat *ramp_stops, in create_gradient_data() argument
113 while (fpos < ramp_stops[0]) { in create_gradient_data()
114 data[pos] = float4_to_argb(ramp_stops + 1); in create_gradient_data()
122 VGfloat delta = 1.f/(ramp_stops[rnext] - ramp_stops[rcur]); in create_gradient_data()
123 while (fpos < ramp_stops[rnext] && pos < size) { in create_gradient_data()
124 VGint dist = 256 * ((fpos - ramp_stops[rcur]) * delta); in create_gradient_data()
126 VGuint current_color = float4_to_argb(ramp_stops + rcur + 1); in create_gradient_data()
127 VGuint next_color = float4_to_argb(ramp_stops + rnext + 1); in create_gradient_data()
135 last_color = float4_to_argb(ramp_stops + ((num - 1) * 5 + 1)); in create_gradient_data()
[all …]