diff options
author | Marek Olšák <[email protected]> | 2020-01-17 19:19:43 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-01-20 15:40:05 -0500 |
commit | d69483270eb1680e1bbe19110b4af65459e165a8 (patch) | |
tree | fc575d9446f49c0efc69d1de55f34f03ef895c6b | |
parent | dbdf3b3ef97e51c31a71b3a27fb84cf89293f57c (diff) |
Revert "radeonsi: unbind image before compute clear"
This reverts commit 3a527eda7ceee37643f948bfcf05285c5aa3a4d6.
It's incorrect.
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_compute_blit.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_compute_blit.c b/src/gallium/drivers/radeonsi/si_compute_blit.c index 9c79932e1a8..612bb0bc779 100644 --- a/src/gallium/drivers/radeonsi/si_compute_blit.c +++ b/src/gallium/drivers/radeonsi/si_compute_blit.c @@ -173,10 +173,6 @@ static void si_compute_do_clear_or_copy(struct si_context *sctx, void *saved_cs = sctx->cs_shader_state.program; struct pipe_shader_buffer saved_sb[2] = {}; si_get_shader_buffers(sctx, PIPE_SHADER_COMPUTE, 0, src ? 2 : 1, saved_sb); - struct pipe_image_view saved_image = {0}; - util_copy_image_view(&saved_image, &sctx->images[PIPE_SHADER_COMPUTE].views[0]); - struct pipe_image_view image = {0}; - ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, &image); unsigned saved_writable_mask = 0; for (unsigned i = 0; i < (src ? 2 : 1); i++) { @@ -258,7 +254,6 @@ static void si_compute_do_clear_or_copy(struct si_context *sctx, ctx->bind_compute_state(ctx, saved_cs); ctx->set_shader_buffers(ctx, PIPE_SHADER_COMPUTE, 0, src ? 2 : 1, saved_sb, saved_writable_mask); - ctx->set_shader_images(ctx, PIPE_SHADER_COMPUTE, 0, 1, &saved_image); si_compute_internal_end(sctx); for (int i = 0; i < 2; i++) pipe_resource_reference(&saved_sb[i].buffer, NULL); |