Create a separate implementation file with texture-descriptor-based sampler views and sampler states. Initialize the one or the other based on the GPU. There is so little in common that this seemed more appropriate that keeping them as one type of state object would only be confusing.
This commit is actually a combiation of the original commit by Wladimir, fixes and TS implementation from Jonathan and changed to use softpin by Lucas.
eda73d71277 etnaviv: GC7000: Texture descriptors
src/gallium/drivers/etnaviv/Makefile.sources | 2 +
src/gallium/drivers/etnaviv/etnaviv_context.c | 25 ++
src/gallium/drivers/etnaviv/etnaviv_context.h | 4 +
src/gallium/drivers/etnaviv/etnaviv_texture.c | 9 +-
src/gallium/drivers/etnaviv/etnaviv_texture_desc.c | 301 +++++++++++++++++++++
src/gallium/drivers/etnaviv/etnaviv_texture_desc.h | 78 ++++++
src/gallium/drivers/etnaviv/etnaviv_util.h | 20 ++
src/gallium/drivers/etnaviv/meson.build | 2 +
8 files changed, 440 insertions(+), 1 deletion(-)