etnaviv: rework clippling calculation to be a derived state
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 21 Mar 2020 10:24:48 +0000 (11:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Mar 2020 15:30:15 +0000 (15:30 +0000)
commit5ba2d398d8a8e8b8d1bf90aa3f68df87f52c7844
tree761be75dc0511becd0fbd0deb92616cb300b0da1
parent95763e20cea3e85e7886421a73be7a68a84b5c80
etnaviv: rework clippling calculation to be a derived state

This moves the whole clipping calculation out of the emit function.

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