summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-11-14 16:03:48 +0100
committerMarek Olšák <[email protected]>2019-07-03 15:51:12 -0400
commit595a7f7c47d3b9bbb55d67907b3de77f1486e0b3 (patch)
tree3496d0f69c0125df2d90ee5813aea642c058f032 /src/gallium/drivers/radeonsi/si_state.c
parent4afce5efdd47a5140a20246895f1a729e24b7b9b (diff)
radeonsi/gfx10: add pipe_screen::make_texture_descriptor
Texture descriptors in gfx10 are very different. Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 347d7b84b4c..dd2314aef66 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -3736,7 +3736,7 @@ static unsigned gfx9_border_color_swizzle(const unsigned char swizzle[4])
/**
* Build the sampler view descriptor for a texture.
*/
-void
+static void
si_make_texture_descriptor(struct si_screen *screen,
struct si_texture *tex,
bool sampler,
@@ -4224,7 +4224,7 @@ si_create_sampler_view_custom(struct pipe_context *ctx,
state->u.tex.first_level,
state->format);
- si_make_texture_descriptor(sctx->screen, tex, true,
+ sctx->screen->make_texture_descriptor(sctx->screen, tex, true,
state->target, pipe_format, state_swizzle,
first_level, last_level,
state->u.tex.first_layer, last_layer,
@@ -4970,6 +4970,8 @@ void si_init_state_functions(struct si_context *sctx)
void si_init_screen_state_functions(struct si_screen *sscreen)
{
sscreen->b.is_format_supported = si_is_format_supported;
+
+ sscreen->make_texture_descriptor = si_make_texture_descriptor;
}
static void si_set_grbm_gfx_index(struct si_context *sctx,