commit | a3b440cc2a41dd6775d585afcc41768e960fb575 | [log] [tgz] |
---|---|---|
author | Alejandro PiƱeiro <apinheiro@igalia.com> | Fri Jan 03 12:27:08 2020 +0100 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Oct 13 21:21:26 2020 +0000 |
tree | 96d2b536531625d9f01b7ccb9db3ed1a6d6eb76e | |
parent | e252e536e41f82e6deb5f48477ae630e8e5eec7b [diff] |
v3dv/cmd_buffer: cache viewport translate/scale Before that commit we were calling get_viewport_xform to get those values twice (to emit scissor and viewport), and we found that we would need that info even more times. So let's just compute that info when setting the viewport, and reuse the values. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>