diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-02-07 22:27:17 -0500 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-03-10 18:22:49 -0500 |
commit | da68a9b21501f4dbff6789362aec40f5221425c9 (patch) | |
tree | 768dc7fd91f54f07df5af80baff41992e86979cf /src/gallium/drivers/radeonsi/si_state_draw.c | |
parent | f03c9e5692c76f658ecc692515bd1a9a79e85524 (diff) | |
download | external_mesa3d-da68a9b21501f4dbff6789362aec40f5221425c9.zip external_mesa3d-da68a9b21501f4dbff6789362aec40f5221425c9.tar.gz external_mesa3d-da68a9b21501f4dbff6789362aec40f5221425c9.tar.bz2 |
radeonsi: move si_decompress_textures to si_blit.c
Since it is all about calling into blitter functions, it makes more
sense here. This change also reduces the size of the interfaces between
.c files.
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_draw.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 5d094c7..84b850a 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -33,21 +33,6 @@ #include "util/u_upload_mgr.h" #include "util/u_prim.h" -static void si_decompress_textures(struct si_context *sctx) -{ - if (!sctx->blitter->running) { - /* Flush depth textures which need to be flushed. */ - for (int i = 0; i < SI_NUM_SHADERS; i++) { - if (sctx->samplers[i].depth_texture_mask) { - si_flush_depth_textures(sctx, &sctx->samplers[i]); - } - if (sctx->samplers[i].compressed_colortex_mask) { - si_decompress_color_textures(sctx, &sctx->samplers[i]); - } - } - } -} - static unsigned si_conv_pipe_prim(unsigned mode) { static const unsigned prim_conv[] = { |