turnip: always emit LRZ draw state in DIRTY_DRAW_STATE path
authorJonathan Marek <jonathan@marek.ca>
Thu, 3 Dec 2020 04:32:13 +0000 (23:32 -0500)
committerJonathan Marek <jonathan@marek.ca>
Tue, 8 Dec 2020 18:16:11 +0000 (13:16 -0500)
commitaf6e74bca86823be63907ec91549ff9f8e88f6fb
tree3db3e9c6db3f03aac2f77b9cccd8b4eca50d8a9f
parent2d886fb43656bf38dfbc3f6c2266b5c421e1837a
turnip: always emit LRZ draw state in DIRTY_DRAW_STATE path

The packet size is constant and assumes all states, except for the 2 input
attachment states. (this means we get an invalid packet if DIRTY_LRZ isn't
set when DIRTY_DRAW_STATE is set).

Fixes: 3c07a1499863 ("turnip: enable LRZ")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7899>
src/freedreno/vulkan/tu_cmd_buffer.c