summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/nv30/nv30_texture.c
diff options
context:
space:
mode:
authorKai Wasserbäch <kai@dev.carbon-project.org>2016-08-27 04:08:00 -0600
committerBrian Paul <brianp@vmware.com>2016-08-29 08:45:48 -0600
commit7413625ad357c87f409cd1673b40f8dffbc43259 (patch)
tree238163910ff8f8b3abfc45350618e7eecf3c55ea /src/gallium/drivers/nouveau/nv30/nv30_texture.c
parented24d79ed712f22ca12a1986a024c522d202dc37 (diff)
gallium: Use enum pipe_shader_type in bind_sampler_states() (v2)
v1 → v2: - Fixed indentation (noted by Brian Paul) - Removed second assert from nouveau's switch statements (suggested by Brian Paul) Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30/nv30_texture.c')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_texture.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_texture.c b/src/gallium/drivers/nouveau/nv30/nv30_texture.c
index 4f4f87e2ce9..e5d3db39f17 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_texture.c
+++ b/src/gallium/drivers/nouveau/nv30/nv30_texture.c
@@ -188,7 +188,7 @@ nv30_sampler_state_delete(struct pipe_context *pipe, void *hwcso)
static void
nv30_bind_sampler_states(struct pipe_context *pipe,
- unsigned shader, unsigned start_slot,
+ enum pipe_shader_type shader, unsigned start_slot,
unsigned num_samplers, void **samplers)
{
switch (shader) {
@@ -198,6 +198,9 @@ nv30_bind_sampler_states(struct pipe_context *pipe,
case PIPE_SHADER_FRAGMENT:
nv30_fragtex_sampler_states_bind(pipe, num_samplers, samplers);
break;
+ default:
+ assert(!"unexpected shader type");
+ break;
}
}