From fcf881adda9909ea124dac31fed70375ae7afbc8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 17 Dec 2018 12:57:38 -0800 Subject: v3d: Don't try to create shadow tiled temporaries for 1D textures. They're raster order anyway, so we'd assertion fail along with wasting bandwidth. Fixes: 6ad9e8690d14 ("v3d: Add support for texturing from linear.") --- src/gallium/drivers/v3d/v3dx_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/v3d/v3dx_state.c b/src/gallium/drivers/v3d/v3dx_state.c index ee1ba7b2d10..95a2dc30c8b 100644 --- a/src/gallium/drivers/v3d/v3dx_state.c +++ b/src/gallium/drivers/v3d/v3dx_state.c @@ -776,7 +776,8 @@ v3d_create_sampler_view(struct pipe_context *pctx, struct pipe_resource *prsc, /* V3D still doesn't support sampling from raster textures, so we will * have to copy to a temporary tiled texture. */ - if (!rsc->tiled) { + if (!rsc->tiled && !(prsc->target == PIPE_TEXTURE_1D || + prsc->target == PIPE_TEXTURE_1D_ARRAY)) { struct v3d_resource *shadow_parent = rsc; struct pipe_resource tmpl = { .target = prsc->target, -- cgit v1.2.3