freedreno/a6xx: move tile_mode to sampler-view CSO
authorRob Clark <robdclark@gmail.com>
Thu, 3 Jan 2019 14:27:58 +0000 (09:27 -0500)
committerRob Clark <robdclark@gmail.com>
Thu, 10 Jan 2019 19:21:39 +0000 (14:21 -0500)
commitc92c18c70caf22eb9d733d8037da736ee78d5cf6
tree89c961642a833af23d9f1f2a2e3626e0b8955d39
parenteb625d30b7b01db98b28a97ab6c15c9d3459fa74
freedreno/a6xx: move tile_mode to sampler-view CSO

This is known when the CSO is created, so no need to patch it in later.

Also, it seems like smaller textures where the first level is small
enough to be linear, it seems like we should set linear tile mode.

See: dEQP-GLES3.functional.texture.format.unsized.rgb_unsigned_byte_3d_pot

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_emit.c
src/gallium/drivers/freedreno/a6xx/fd6_texture.c