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:

committed by
Marge Bot

parent
aa1a752979
commit
0241094eb4
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user