broadcom/vc5: Add PIPE_TEX_WRAP_CLAMP support for linear-filtered textures.
authorEric Anholt <eric@anholt.net>
Tue, 24 Oct 2017 19:29:39 +0000 (12:29 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 30 Oct 2017 20:31:16 +0000 (13:31 -0700)
commiteecdbaa98578110523b04b8a4f160b8df2dea82f
treec4f4d57912314d50450b72a1b16ff643b0994609
parente798455330d15d7c99b5ebe36f7de0793aae39b5
broadcom/vc5: Add PIPE_TEX_WRAP_CLAMP support for linear-filtered textures.

I already had the texture's wrapping set up to use different behavior for
nearest or linear, so we just needed to saturate the coordinates in linear
mode to get the "proper" blend between the edge and border values.
src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/vir.c
src/gallium/drivers/vc5/vc5_program.c