diff options
author | Rob Clark <[email protected]> | 2014-12-02 17:17:02 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-12-03 09:22:05 -0500 |
commit | b491d1ca6e3681bdcbbb3ca0a8fe14c861fb7273 (patch) | |
tree | fb9741ff6efa9850bab948137f53998f26c03359 /src/gallium/drivers/freedreno | |
parent | fbba633f2f91b8e5dc8bedb70af731f643b2c093 (diff) |
freedreno/a4xx: rect textures
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_texture.c | 7 |
1 files 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) |