etnaviv: Unified uniforms support
authorWladimir J. van der Laan <laanwj@gmail.com>
Mon, 24 Jul 2017 08:28:16 +0000 (10:28 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 6 Aug 2017 18:43:57 +0000 (20:43 +0200)
commit6c321c8b0b3547b0af0b0939391eef4dc8d2f873
tree2a0243c4ac8bea14a8aca70c918ce0998bb4db6b
parent9c04c88830bc1001bdb446eef692e925483d73f4
etnaviv: Unified uniforms support

GC3000 has changed from a separate store for VS and PS uniforms
to a single, unified one. There is backwards compatibilty functionalty,
however this does not work correctly together with ICACHE.

This patch adds explicit support, although in the simplest way possible:
the PS/VS uniforms split is still fixed and hardcoded. It should
make no difference on hardware that does not have unified uniform
memory.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_emit.c
src/gallium/drivers/etnaviv/etnaviv_internal.h
src/gallium/drivers/etnaviv/etnaviv_screen.c