summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_sample.c20
-rw-r--r--src/mesa/pipe/softpipe/sp_tex_sample.h2
2 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.c b/src/mesa/pipe/softpipe/sp_tex_sample.c
index df64c81769b..1d274d50384 100644
--- a/src/mesa/pipe/softpipe/sp_tex_sample.c
+++ b/src/mesa/pipe/softpipe/sp_tex_sample.c
@@ -411,7 +411,7 @@ choose_cube_face(const GLfloat texcoord[4], GLfloat newCoord[4])
static void
sp_get_sample_1d(struct tgsi_sampler *sampler,
- const GLfloat strq[4], GLfloat rgba[4])
+ const GLfloat strq[4], GLfloat lambda, GLfloat rgba[4])
{
struct pipe_context *pipe = (struct pipe_context *) sampler->pipe;
struct pipe_surface *ps
@@ -460,9 +460,9 @@ sp_get_sample_1d(struct tgsi_sampler *sampler,
* The update_samplers() function in st_atom_sampler.c could create
* a new tgsi_sampler object for each state combo it finds....
*/
-void
+static void
sp_get_sample_2d(struct tgsi_sampler *sampler,
- const GLfloat strq[4], GLfloat rgba[4])
+ const GLfloat strq[4], GLfloat lambda, GLfloat rgba[4])
{
struct pipe_context *pipe = (struct pipe_context *) sampler->pipe;
struct pipe_surface *ps
@@ -507,7 +507,7 @@ sp_get_sample_2d(struct tgsi_sampler *sampler,
static void
sp_get_sample_3d(struct tgsi_sampler *sampler,
- const GLfloat strq[4], GLfloat rgba[4])
+ const GLfloat strq[4], GLfloat lamba, GLfloat rgba[4])
{
/* get/map pipe_surfaces corresponding to 3D tex slices */
}
@@ -515,7 +515,7 @@ sp_get_sample_3d(struct tgsi_sampler *sampler,
static void
sp_get_sample_cube(struct tgsi_sampler *sampler,
- const GLfloat strq[4], GLfloat rgba[4])
+ const GLfloat strq[4], GLfloat lambda, GLfloat rgba[4])
{
GLfloat st[4];
GLuint face = choose_cube_face(strq, st);
@@ -526,20 +526,20 @@ sp_get_sample_cube(struct tgsi_sampler *sampler,
void
sp_get_sample(struct tgsi_sampler *sampler,
- const GLfloat strq[4], GLfloat rgba[4])
+ const GLfloat strq[4], GLfloat lambda, GLfloat rgba[4])
{
switch (sampler->texture->target) {
case GL_TEXTURE_1D:
- sp_get_sample_1d(sampler, strq, rgba);
+ sp_get_sample_1d(sampler, strq, lambda, rgba);
break;
case GL_TEXTURE_2D:
- sp_get_sample_2d(sampler, strq, rgba);
+ sp_get_sample_2d(sampler, strq, lambda, rgba);
break;
case GL_TEXTURE_3D:
- sp_get_sample_3d(sampler, strq, rgba);
+ sp_get_sample_3d(sampler, strq, lambda, rgba);
break;
case GL_TEXTURE_CUBE_MAP:
- sp_get_sample_cube(sampler, strq, rgba);
+ sp_get_sample_cube(sampler, strq, lambda, rgba);
break;
default:
assert(0);
diff --git a/src/mesa/pipe/softpipe/sp_tex_sample.h b/src/mesa/pipe/softpipe/sp_tex_sample.h
index d1d40e4a2f6..55ae49094b0 100644
--- a/src/mesa/pipe/softpipe/sp_tex_sample.h
+++ b/src/mesa/pipe/softpipe/sp_tex_sample.h
@@ -7,7 +7,7 @@ struct tgsi_sampler;
extern void
sp_get_sample(struct tgsi_sampler *sampler,
- const GLfloat strq[4], GLfloat rgba[4]);
+ const GLfloat strq[4], GLfloat lambda, GLfloat rgba[4]);
#endif /* SP_TEX_SAMPLE_H */