freedreno: make texture state an array

Graphics / Mesa 3D Graphics Library / Mesa - Rob Clark [gmail.com] - 18 April 2017 16:32 EDT

Make this an array indexed by shader stage, as is done elsewhere for other per-shader-stage state. This will simplify things as more shader stages are eventually added.

0cc23ae freedreno: make texture state an array
src/gallium/drivers/freedreno/a2xx/fd2_emit.c | 14 ++++++++------
src/gallium/drivers/freedreno/a2xx/fd2_program.c | 4 ++--
src/gallium/drivers/freedreno/a2xx/fd2_texture.c | 6 +++---
src/gallium/drivers/freedreno/a3xx/fd3_emit.c | 4 ++--
src/gallium/drivers/freedreno/a4xx/fd4_emit.c | 4 ++--
src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 17 ++++++++++-------
src/gallium/drivers/freedreno/freedreno_context.h | 2 +-
src/gallium/drivers/freedreno/freedreno_draw.c | 8 ++++----
src/gallium/drivers/freedreno/freedreno_resource.c | 15 ++++++++-------
src/gallium/drivers/freedreno/freedreno_texture.c | 10 +++++-----
10 files changed, 45 insertions(+), 39 deletions(-)

Upstream: cgit.freedesktop.org


  • Share