freedreno/a3xx: LAYERSZ2 appears to have no effect on arrays
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 13 Mar 2015 22:01:11 +0000 (18:01 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 28 Mar 2015 18:54:40 +0000 (14:54 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a3xx/fd3_texture.c

index 567f6c74aa165ec760bb7c8324e9406d0acedf31..05d826e40eccb6ef0e90403f58deb2a9c1364111 100644 (file)
@@ -246,8 +246,7 @@ fd3_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc,
        case PIPE_TEXTURE_2D_ARRAY:
                so->texconst3 =
                                A3XX_TEX_CONST_3_DEPTH(prsc->array_size - 1) |
-                               A3XX_TEX_CONST_3_LAYERSZ1(rsc->slices[0].size0) |
-                               A3XX_TEX_CONST_3_LAYERSZ2(rsc->slices[0].size0);
+                               A3XX_TEX_CONST_3_LAYERSZ1(rsc->slices[0].size0);
                break;
        case PIPE_TEXTURE_3D:
                so->texconst3 =