freedreno/a3xx: disable filtering for texture buffers and int textures
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 17 Sep 2015 06:04:22 +0000 (02:04 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 11 Sep 2016 17:14:06 +0000 (13:14 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/freedreno/a3xx/fd3_texture.c

index 94caaedae41819ccf50d219b1591556a72f869ce..a4f0b9bf53419080e9df4d6e13b41fe263960ed2 100644 (file)
@@ -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;