diff options
author | Rob Clark <[email protected]> | 2014-09-13 16:14:17 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-09-21 15:36:26 -0400 |
commit | 49b8fb937f76d49fb5d2ed0d2c99e947a389d686 (patch) | |
tree | 317a6ec05ed035a5d087e95ad0403e376b304641 /src/gallium/drivers/freedreno/a3xx | |
parent | 18291ee17a36ea700108b85d679444efa262a312 (diff) |
freedreno/a3xx: more texture array fixes
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c index 8a5140f36f9..36a877dcd92 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c @@ -179,7 +179,7 @@ fd3_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc, case PIPE_TEXTURE_1D_ARRAY: case PIPE_TEXTURE_2D_ARRAY: so->texconst3 = - A3XX_TEX_CONST_3_DEPTH(u_minify(prsc->array_size, lvl)) | + 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); break; |