diff options
author | Brian Paul <brianp@vmware.com> | 2016-10-07 14:28:21 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2016-10-13 17:38:49 -0600 |
commit | a710c21ac200fc1c80a6209862e837f0a75f4cc5 (patch) | |
tree | 7b00bb81989736169eea549dc1e4b09fae7471f3 /src/mesa/drivers/dri | |
parent | 99d790538de2e7d7d489a8638b13c5aa069c27c3 (diff) | |
download | external_mesa3d-a710c21ac200fc1c80a6209862e837f0a75f4cc5.zip external_mesa3d-a710c21ac200fc1c80a6209862e837f0a75f4cc5.tar.gz external_mesa3d-a710c21ac200fc1c80a6209862e837f0a75f4cc5.tar.bz2 |
mesa: remove 'params' parameter from ctx->Driver.TexParameter()
None of the drivers which implement this hook do anything with the
texture parameter value. Drivers just look at the pname and set a
dirty flag if needed.
We were doing some ugly casting and type conversion to setup the
argument so that all goes away.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_state.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_tex.c | 6 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_tex.c | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_state.c b/src/mesa/drivers/dri/nouveau/nouveau_state.c index 6189997..de36fa4 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_state.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_state.c @@ -395,8 +395,7 @@ nouveau_tex_env(struct gl_context *ctx, GLenum target, GLenum pname, static void nouveau_tex_parameter(struct gl_context *ctx, - struct gl_texture_object *t, GLenum pname, - const GLfloat *params) + struct gl_texture_object *t, GLenum pname) { switch (pname) { case GL_TEXTURE_MAG_FILTER: diff --git a/src/mesa/drivers/dri/r200/r200_tex.c b/src/mesa/drivers/dri/r200/r200_tex.c index ca92110..2a95f2d 100644 --- a/src/mesa/drivers/dri/r200/r200_tex.c +++ b/src/mesa/drivers/dri/r200/r200_tex.c @@ -374,9 +374,9 @@ void r200TexUpdateParameters(struct gl_context *ctx, GLuint unit) * Changes variables and flags for a state update, which will happen at the * next UpdateTextureState */ -static void r200TexParameter( struct gl_context *ctx, - struct gl_texture_object *texObj, - GLenum pname, const GLfloat *params ) +static void r200TexParameter(struct gl_context *ctx, + struct gl_texture_object *texObj, + GLenum pname) { radeonTexObj* t = radeon_tex_obj(texObj); diff --git a/src/mesa/drivers/dri/radeon/radeon_tex.c b/src/mesa/drivers/dri/radeon/radeon_tex.c index d1aa1a1..083a5e1 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tex.c +++ b/src/mesa/drivers/dri/radeon/radeon_tex.c @@ -329,7 +329,7 @@ void radeonTexUpdateParameters(struct gl_context *ctx, GLuint unit) static void radeonTexParameter( struct gl_context *ctx, struct gl_texture_object *texObj, - GLenum pname, const GLfloat *params ) + GLenum pname ) { radeonTexObj* t = radeon_tex_obj(texObj); |