gallium/radeon: make r600_texture_disable_dcc externally accessible
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 12 Mar 2016 00:39:18 +0000 (19:39 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 21 Mar 2016 20:34:22 +0000 (15:34 -0500)
We will need it in radeonsi for shader images.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeon/r600_texture.c

index a9de71a87347a898c412838cdbcc13e7ba49c1ce..381ad21a4e34955e0d02d7453fbdf79f88f13569 100644 (file)
@@ -606,6 +606,8 @@ void evergreen_do_fast_color_clear(struct r600_common_context *rctx,
                                   struct r600_atom *fb_state,
                                   unsigned *buffers, unsigned *dirty_cbufs,
                                   const union pipe_color_union *color);
+void r600_texture_disable_dcc(struct r600_common_screen *rscreen,
+                             struct r600_texture *rtex);
 void r600_init_screen_texture_functions(struct r600_common_screen *rscreen);
 void r600_init_context_texture_functions(struct r600_common_context *rctx);
 
index c573b438b01d6e36b94cd10e028318d54ebfd761..7322f3ee9854a2b0a8fefe4f28e18698d3f37cf5 100644 (file)
@@ -297,8 +297,8 @@ static void r600_texture_disable_cmask(struct r600_common_screen *rscreen,
        p_atomic_inc(&rscreen->compressed_colortex_counter);
 }
 
-static void r600_texture_disable_dcc(struct r600_common_screen *rscreen,
-                                    struct r600_texture *rtex)
+void r600_texture_disable_dcc(struct r600_common_screen *rscreen,
+                             struct r600_texture *rtex)
 {
        struct r600_common_context *rctx =
                (struct r600_common_context *)rscreen->aux_context;