summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-01-09 11:21:23 -0500
committerRob Clark <[email protected]>2017-01-10 19:40:00 -0500
commit730c3047f084f7d3e10b3badd3b0889170d32ff0 (patch)
tree06ed936fa4e6a4f103fa42a0a39cc9daec442e9d /src/gallium
parent1a5d0818df774cc2ac993ce21e9643322b5a88d9 (diff)
freedreno/a5xx: add texture MIPLVLS
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_texture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_texture.c b/src/gallium/drivers/freedreno/a5xx/fd5_texture.c
index 47b07b8cd4e..127cf33ba00 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_texture.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_texture.c
@@ -257,13 +257,13 @@ fd5_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc,
A5XX_TEX_CONST_2_PITCH(elements * rsc->cpp);
so->offset = cso->u.buf.offset;
} else {
-// unsigned miplevels;
+ unsigned miplevels;
lvl = fd_sampler_first_level(cso);
-// miplevels = fd_sampler_last_level(cso) - lvl;
+ miplevels = fd_sampler_last_level(cso) - lvl;
layers = cso->u.tex.last_layer - cso->u.tex.first_layer + 1;
-// so->texconst0 |= A5XX_TEX_CONST_0_MIPLVLS(miplevels);
+ so->texconst0 |= A5XX_TEX_CONST_0_MIPLVLS(miplevels);
so->texconst1 =
A5XX_TEX_CONST_1_WIDTH(u_minify(prsc->width0, lvl)) |
A5XX_TEX_CONST_1_HEIGHT(u_minify(prsc->height0, lvl));