diff options
author | Kai Wasserbäch <[email protected]> | 2016-08-27 04:08:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-29 09:07:25 -0600 |
commit | 532db3b7881f3dfcd299320cbf44443d06b88373 (patch) | |
tree | 3d7099d986e4efbc4579e35d6139080f8f5ad0d2 /src/gallium/drivers/ilo/ilo_state.c | |
parent | 7413625ad357c87f409cd1673b40f8dffbc43259 (diff) |
gallium: Use enum pipe_shader_type in set_sampler_views()
Signed-off-by: Kai Wasserbäch <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_state.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/ilo/ilo_state.c b/src/gallium/drivers/ilo/ilo_state.c index e05d49f7bf4..0ae32c76161 100644 --- a/src/gallium/drivers/ilo/ilo_state.c +++ b/src/gallium/drivers/ilo/ilo_state.c @@ -1802,7 +1802,7 @@ ilo_set_viewport_states(struct pipe_context *pipe, } static void -ilo_set_sampler_views(struct pipe_context *pipe, unsigned shader, +ilo_set_sampler_views(struct pipe_context *pipe, enum pipe_shader_type shader, unsigned start, unsigned count, struct pipe_sampler_view **views) { @@ -1846,6 +1846,9 @@ ilo_set_sampler_views(struct pipe_context *pipe, unsigned shader, case PIPE_SHADER_COMPUTE: vec->dirty |= ILO_DIRTY_VIEW_CS; break; + default: + assert(!"unexpected shader type"); + break; } } |