diff options
author | Nicolai Hähnle <[email protected]> | 2016-06-03 15:04:40 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-06-07 15:17:57 +0200 |
commit | c615a055f4e6e6fcd6d53d8dadfac48f27358699 (patch) | |
tree | e9dae3bca3dc99e6d00583b042ff7559bec8ec4c /src/gallium/drivers/radeonsi | |
parent | e6612a3e685b57714c3acde66b88bfee8aeb107f (diff) |
radeonsi: pass shader stage to si_set_shader_image
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_descriptors.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index b1abdd2ba8b..bea751557d3 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -531,10 +531,11 @@ si_mark_image_range_valid(struct pipe_image_view *view) } static void si_set_shader_image(struct si_context *ctx, - struct si_images_info *images, + unsigned shader, unsigned slot, struct pipe_image_view *view) { struct si_screen *screen = ctx->screen; + struct si_images_info *images = &ctx->images[shader]; struct r600_resource *res; if (!view || !view->resource) { @@ -624,7 +625,6 @@ si_set_shader_images(struct pipe_context *pipe, unsigned shader, struct pipe_image_view *views) { struct si_context *ctx = (struct si_context *)pipe; - struct si_images_info *images = &ctx->images[shader]; unsigned i, slot; assert(shader < SI_NUM_SHADERS); @@ -636,10 +636,10 @@ si_set_shader_images(struct pipe_context *pipe, unsigned shader, if (views) { for (i = 0, slot = start_slot; i < count; ++i, ++slot) - si_set_shader_image(ctx, images, slot, &views[i]); + si_set_shader_image(ctx, shader, slot, &views[i]); } else { for (i = 0, slot = start_slot; i < count; ++i, ++slot) - si_set_shader_image(ctx, images, slot, NULL); + si_set_shader_image(ctx, shader, slot, NULL); } } @@ -1420,7 +1420,7 @@ void si_update_all_texture_descriptors(struct si_context *sctx) view->resource->target == PIPE_BUFFER) continue; - si_set_shader_image(sctx, images, i, view); + si_set_shader_image(sctx, shader, i, view); } /* Sampler views. */ |