summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-09-17 02:04:22 -0400
committerIlia Mirkin <[email protected]>2016-09-11 13:14:06 -0400
commit148fbf32a8ef5bab2c7ae34978f9fded91dc7d4d (patch)
tree7c98c1d85a779585b4e0fd9d5263404489ff6f7b /src/gallium
parentcfa914a1b4e20e7ef416171f5212f21e8224befc (diff)
freedreno/a3xx: disable filtering for texture buffers and int textures
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/freedreno/a3xx/fd3_texture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
index 94caaedae41..a4f0b9bf534 100644
--- a/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
+++ b/src/gallium/drivers/freedreno/a3xx/fd3_texture.c
@@ -234,6 +234,8 @@ fd3_sampler_view_create(struct pipe_context *pctx, struct pipe_resource *prsc,
fd3_tex_swiz(cso->format, cso->swizzle_r, cso->swizzle_g,
cso->swizzle_b, cso->swizzle_a);
+ if (prsc->target == PIPE_BUFFER || util_format_is_pure_integer(cso->format))
+ so->texconst0 |= A3XX_TEX_CONST_0_NOCONVERT;
if (util_format_is_srgb(cso->format))
so->texconst0 |= A3XX_TEX_CONST_0_SRGB;