From: Rob Clark Date: Tue, 2 Dec 2014 22:17:02 +0000 (-0500) Subject: freedreno/a4xx: rect textures X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b491d1ca6e3681bdcbbb3ca0a8fe14c861fb7273;p=mesa.git freedreno/a4xx: rect textures Signed-off-by: Rob Clark --- 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)