~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/mesa/swrast/s_aaline.c

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
}
131
131
 
132
132
 
133
 
static INLINE void
 
133
static inline void
134
134
constant_plane(GLfloat value, GLfloat plane[4])
135
135
{
136
136
   plane[0] = 0.0;
140
140
}
141
141
 
142
142
 
143
 
static INLINE GLfloat
 
143
static inline GLfloat
144
144
solve_plane(GLfloat x, GLfloat y, const GLfloat plane[4])
145
145
{
146
146
   const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2];
154
154
/*
155
155
 * Return 1 / solve_plane().
156
156
 */
157
 
static INLINE GLfloat
 
157
static inline GLfloat
158
158
solve_plane_recip(GLfloat x, GLfloat y, const GLfloat plane[4])
159
159
{
160
160
   const GLfloat denom = plane[3] + plane[0] * x + plane[1] * y;
168
168
/*
169
169
 * Solve plane and return clamped GLchan value.
170
170
 */
171
 
static INLINE GLchan
 
171
static inline GLchan
172
172
solve_plane_chan(GLfloat x, GLfloat y, const GLfloat plane[4])
173
173
{
174
174
   const GLfloat z = (plane[3] + plane[0] * x + plane[1] * y) / -plane[2];
187
187
/*
188
188
 * Compute mipmap level of detail.
189
189
 */
190
 
static INLINE GLfloat
 
190
static inline GLfloat
191
191
compute_lambda(const GLfloat sPlane[4], const GLfloat tPlane[4],
192
192
               GLfloat invQ, GLfloat width, GLfloat height)
193
193
{