etnaviv: Add sampler TS support

Graphics / Mesa 3D Graphics Library / Mesa - Wladimir J. van der Laan [gmail.com] - 15 November 2017 22:27 EST

Sampler TS is an hardware optimization that can be used when rendering to textures. After rendering to a resource with TS enabled, the texture unit can use this to bypass lookups to empty tiles. This also means a resolve-in-place can be avoided to flush the TS.

This commit is also an optimization when not using sampler TS, as resolve-in-place will now be skipped if a resource has no (valid) TS.

d61a914394 etnaviv: Add sampler TS support
src/gallium/drivers/etnaviv/etnaviv_emit.c | 26 ++++++++++
src/gallium/drivers/etnaviv/etnaviv_texture.c | 74 ++++++++++++++++++++++++---
src/gallium/drivers/etnaviv/etnaviv_texture.h | 5 ++
3 files changed, 99 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share