diff options
author | Kristian H. Kristensen <[email protected]> | 2019-11-01 15:16:44 -0700 |
---|---|---|
committer | Kristian H. Kristensen <[email protected]> | 2019-11-07 16:36:33 -0800 |
commit | 50124afe3408108dc742c81dca3c071194ed678d (patch) | |
tree | 7a86225c66cc45c5f7d918559558460ba37b8e02 /src/gallium/drivers | |
parent | 0276d0766d4b62d28097d74a049808b1e10c1f9b (diff) |
freedreno/a6xx: Fix layered texture type enum
2D array textures and 3D textures are different enum values after all.
Signed-off-by: Kristian H. Kristensen <[email protected]>
Acked-by: Eric Anholt <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_gmem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c index 5799e6b0d3f..708347931ac 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c @@ -109,13 +109,13 @@ emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb, if (psurf->u.tex.first_layer < psurf->u.tex.last_layer) { layered = true; if (psurf->texture->target == PIPE_TEXTURE_2D_ARRAY && psurf->texture->nr_samples > 0) - type = MULTISAMPLE_ARRAY; + type = LAYER_MULTISAMPLE_ARRAY; else if (psurf->texture->target == PIPE_TEXTURE_2D_ARRAY) - type = ARRAY; + type = LAYER_2D_ARRAY; else if (psurf->texture->target == PIPE_TEXTURE_CUBE) - type = CUBEMAP; + type = LAYER_CUBEMAP; else if (psurf->texture->target == PIPE_TEXTURE_3D) - type = ARRAY; + type = LAYER_3D; stride /= pfb->samples; } |