etnaviv: add etna_constbuf_state object
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 14 Feb 2020 18:55:24 +0000 (19:55 +0100)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 6 Mar 2020 16:48:17 +0000 (17:48 +0100)
commit74e4cda64b9d114321216eefe536f80644b0f0fd
tree4ede5371212a7571540d3907571f50171964dc17
parent9f5802ad3e0cf303892f19d29803bba95eac9102
etnaviv: add etna_constbuf_state object

With this new state object we keep track of enabled pipe_constant_buffer
and only mark them as read when needed.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4088>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4088>
src/gallium/drivers/etnaviv/etnaviv_context.c
src/gallium/drivers/etnaviv/etnaviv_context.h
src/gallium/drivers/etnaviv/etnaviv_emit.c
src/gallium/drivers/etnaviv/etnaviv_state.c