From b491d1ca6e3681bdcbbb3ca0a8fe14c861fb7273 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 2 Dec 2014 17:17:02 -0500 Subject: [PATCH] freedreno/a4xx: rect textures Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a4xx/fd4_texture.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_texture.c b/src/gallium/drivers/freedreno/a4xx/fd4_texture.c index 874e0014d93..6523c71e4c1 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_texture.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_texture.c @@ -99,12 +99,13 @@ fd4_sampler_state_create(struct pipe_context *pctx, A4XX_TEX_SAMP_0_WRAP_T(tex_clamp(cso->wrap_t)) | A4XX_TEX_SAMP_0_WRAP_R(tex_clamp(cso->wrap_r)); + so->texsamp1 = + COND(!cso->normalized_coords, A4XX_TEX_SAMP_1_UNNORM_COORDS); + if (cso->min_mip_filter != PIPE_TEX_MIPFILTER_NONE) { - so->texsamp1 = + so->texsamp1 |= A4XX_TEX_SAMP_1_MIN_LOD(cso->min_lod) | A4XX_TEX_SAMP_1_MAX_LOD(cso->max_lod); - } else { - so->texsamp1 = 0x00000000; } if (cso->compare_mode) -- 2.30.2