From 532db3b7881f3dfcd299320cbf44443d06b88373 Mon Sep 17 00:00:00 2001 From: Kai Wasserbäch Date: Sat, 27 Aug 2016 04:08:00 -0600 Subject: gallium: Use enum pipe_shader_type in set_sampler_views() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kai Wasserbäch Reviewed-by: Brian Paul --- src/gallium/drivers/freedreno/a4xx/fd4_texture.c | 2 +- src/gallium/drivers/freedreno/freedreno_texture.c | 2 +- src/gallium/drivers/freedreno/freedreno_texture.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gallium/drivers/freedreno') diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_texture.c b/src/gallium/drivers/freedreno/a4xx/fd4_texture.c index bad56fec83b..4faeceee5e6 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_texture.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_texture.c @@ -308,7 +308,7 @@ fd4_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, } static void -fd4_set_sampler_views(struct pipe_context *pctx, unsigned shader, +fd4_set_sampler_views(struct pipe_context *pctx, enum pipe_shader_type shader, unsigned start, unsigned nr, struct pipe_sampler_view **views) { diff --git a/src/gallium/drivers/freedreno/freedreno_texture.c b/src/gallium/drivers/freedreno/freedreno_texture.c index 884d7b04811..2d038927a5a 100644 --- a/src/gallium/drivers/freedreno/freedreno_texture.c +++ b/src/gallium/drivers/freedreno/freedreno_texture.c @@ -102,7 +102,7 @@ fd_sampler_states_bind(struct pipe_context *pctx, } void -fd_set_sampler_views(struct pipe_context *pctx, unsigned shader, +fd_set_sampler_views(struct pipe_context *pctx, enum pipe_shader_type shader, unsigned start, unsigned nr, struct pipe_sampler_view **views) { diff --git a/src/gallium/drivers/freedreno/freedreno_texture.h b/src/gallium/drivers/freedreno/freedreno_texture.h index b52e27d07a0..61245329967 100644 --- a/src/gallium/drivers/freedreno/freedreno_texture.h +++ b/src/gallium/drivers/freedreno/freedreno_texture.h @@ -35,7 +35,8 @@ void fd_sampler_states_bind(struct pipe_context *pctx, unsigned shader, unsigned start, unsigned nr, void **hwcso); -void fd_set_sampler_views(struct pipe_context *pctx, unsigned shader, +void fd_set_sampler_views(struct pipe_context *pctx, + enum pipe_shader_type shader, unsigned start, unsigned nr, struct pipe_sampler_view **views); -- cgit v1.2.3