summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2013-11-01 19:46:55 -0400
committerRob Clark <[email protected]>2013-11-01 20:22:40 -0400
commitf407ea1f1c8c4f2de188fcfa05cdb83950b51355 (patch)
tree31944fcd6209aecd066f8052a0bfaa60dc03b1cb /src/gallium/drivers
parent2d10e22f8be4a5aa59632876465e7683ec10027d (diff)
freedreno/a3xx/texture: min/max lod
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_texture.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
index 88b3f8eaab5..d15cf379190 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
@@ -99,12 +99,10 @@ fd3_sampler_state_create(struct pipe_context *pctx,
A3XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t)) |
A3XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r));
- /* when mip-map is not disabled, this gets set.. I guess possibly
- * it is the LOD related params, but I think I need GLES3 blob driver
- * to be able to tell..
- */
if (cso->min_mip_filter != PIPE_TEX_MIPFILTER_NONE) {
- so->texsamp1 = 0x003ff000;
+ so->texsamp1 =
+ A3XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) |
+ A3XX_TEX_SAMP_1_MAX_LOD(cso->max_lod);
} else {
so->texsamp1 = 0x00000000;
}