diff options
author | Nicolai Hähnle <[email protected]> | 2016-04-26 19:54:41 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-01 22:37:15 +0200 |
commit | d9893feb2c9d86345ea561f84d03e89229faa35d (patch) | |
tree | b6cf80d31fbb17bb56fee22a13965ad6c81b36ee /src/mesa/state_tracker/st_atom_image.c | |
parent | fc0352ff9c5b0f6941b37934ee65c6002acd8144 (diff) |
gallium/cso: allow saving the first fragment shader image slot
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom_image.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_image.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_atom_image.c b/src/mesa/state_tracker/st_atom_image.c index e96d10a196c..9b8f5059ac0 100644 --- a/src/mesa/state_tracker/st_atom_image.c +++ b/src/mesa/state_tracker/st_atom_image.c @@ -34,6 +34,7 @@ #include "pipe/p_defines.h" #include "util/u_inlines.h" #include "util/u_surface.h" +#include "cso_cache/cso_context.h" #include "st_cb_texture.h" #include "st_debug.h" @@ -122,12 +123,12 @@ st_bind_images(struct st_context *st, struct gl_shader *shader, } } } - st->pipe->set_shader_images(st->pipe, shader_type, 0, shader->NumImages, - images); + cso_set_shader_images(st->cso_context, shader_type, 0, shader->NumImages, + images); /* clear out any stale shader images */ if (shader->NumImages < c->MaxImageUniforms) - st->pipe->set_shader_images( - st->pipe, shader_type, + cso_set_shader_images( + st->cso_context, shader_type, shader->NumImages, c->MaxImageUniforms - shader->NumImages, NULL); |