mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
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: 6ad9e8690d ("v3d: Add support for texturing from linear.")
This commit is contained in:
parent
b5adc744ba
commit
fcf881adda
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue