mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
gallium: Use enum pipe_shader_type in set_shader_images()
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
15fe288dea
commit
4c53267b8f
10 changed files with 16 additions and 10 deletions
|
|
@ -1360,7 +1360,8 @@ cso_restore_fragment_sampler_views(struct cso_context *ctx)
|
|||
|
||||
|
||||
void
|
||||
cso_set_shader_images(struct cso_context *ctx, unsigned shader_stage,
|
||||
cso_set_shader_images(struct cso_context *ctx,
|
||||
enum pipe_shader_type shader_stage,
|
||||
unsigned start, unsigned count,
|
||||
struct pipe_image_view *images)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -196,7 +196,8 @@ cso_set_sampler_views(struct cso_context *cso,
|
|||
/* shader images */
|
||||
|
||||
void
|
||||
cso_set_shader_images(struct cso_context *cso, unsigned shader_stage,
|
||||
cso_set_shader_images(struct cso_context *cso,
|
||||
enum pipe_shader_type shader_stage,
|
||||
unsigned start, unsigned count,
|
||||
struct pipe_image_view *views);
|
||||
|
||||
|
|
|
|||
|
|
@ -521,7 +521,8 @@ dd_context_set_sampler_views(struct pipe_context *_pipe,
|
|||
}
|
||||
|
||||
static void
|
||||
dd_context_set_shader_images(struct pipe_context *_pipe, unsigned shader,
|
||||
dd_context_set_shader_images(struct pipe_context *_pipe,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start, unsigned num,
|
||||
const struct pipe_image_view *views)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1853,7 +1853,7 @@ ilo_set_sampler_views(struct pipe_context *pipe, enum pipe_shader_type shader,
|
|||
}
|
||||
|
||||
static void
|
||||
ilo_set_shader_images(struct pipe_context *pipe, unsigned shader,
|
||||
ilo_set_shader_images(struct pipe_context *pipe, enum pipe_shader_type shader,
|
||||
unsigned start, unsigned count,
|
||||
const struct pipe_image_view *views)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1344,7 +1344,8 @@ nvc0_bind_images_range(struct nvc0_context *nvc0, const unsigned s,
|
|||
}
|
||||
|
||||
static void
|
||||
nvc0_set_shader_images(struct pipe_context *pipe, unsigned shader,
|
||||
nvc0_set_shader_images(struct pipe_context *pipe,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start, unsigned nr,
|
||||
const struct pipe_image_view *images)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -704,7 +704,8 @@ static void si_set_shader_image(struct si_context *ctx,
|
|||
}
|
||||
|
||||
static void
|
||||
si_set_shader_images(struct pipe_context *pipe, unsigned shader,
|
||||
si_set_shader_images(struct pipe_context *pipe,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start_slot, unsigned count,
|
||||
const struct pipe_image_view *views)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#include "sp_buffer.h"
|
||||
|
||||
static void softpipe_set_shader_images(struct pipe_context *pipe,
|
||||
unsigned shader,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start,
|
||||
unsigned num,
|
||||
const struct pipe_image_view *images)
|
||||
|
|
|
|||
|
|
@ -1749,7 +1749,7 @@ static void trace_context_set_shader_buffers(struct pipe_context *_context,
|
|||
}
|
||||
|
||||
static void trace_context_set_shader_images(struct pipe_context *_context,
|
||||
unsigned shader,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start, unsigned nr,
|
||||
const struct pipe_image_view *images)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -332,7 +332,8 @@ struct pipe_context {
|
|||
* unless it's NULL, in which case no images will
|
||||
* be bound.
|
||||
*/
|
||||
void (*set_shader_images)(struct pipe_context *, unsigned shader,
|
||||
void (*set_shader_images)(struct pipe_context *,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start_slot, unsigned count,
|
||||
const struct pipe_image_view *images);
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
static void
|
||||
st_bind_images(struct st_context *st, struct gl_linked_shader *shader,
|
||||
unsigned shader_type)
|
||||
enum pipe_shader_type shader_type)
|
||||
{
|
||||
unsigned i;
|
||||
struct pipe_image_view images[MAX_IMAGE_UNIFORMS];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue