radv: move viewport pre-computed xform outside of radv_viewport_state

I think we should distinguish between dynamic states (applications) and
hardware states, and this will allow us to use vk_viewport_state
instead of our own structs.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20314>
This commit is contained in:
Samuel Pitoiset
2022-12-14 09:09:04 +01:00
committed by Marge Bot
parent aa1a752979
commit 0241094eb4
3 changed files with 21 additions and 18 deletions

View File

@@ -1527,7 +1527,7 @@ radv_pipeline_init_dynamic_state(struct radv_graphics_pipeline *pipeline,
typed_memcpy(dynamic->viewport.viewports, state->vp->viewports, state->vp->viewport_count);
for (unsigned i = 0; i < dynamic->viewport.count; i++)
radv_get_viewport_xform(&dynamic->viewport.viewports[i],
dynamic->viewport.xform[i].scale, dynamic->viewport.xform[i].translate);
dynamic->hw_vp.xform[i].scale, dynamic->hw_vp.xform[i].translate);
}
}