| commit | 3712609ee364c50962998acb6553e0dc2e9f052e | [log] [tgz] |
|---|---|---|
| author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | Sun Aug 07 16:25:13 2022 -0400 |
| committer | Alyssa Rosenzweig <alyssa@rosenzweig.io> | Sun Aug 07 20:43:54 2022 -0400 |
| tree | 7eb3131223cba4e9bf1353f508994e93abd085bc | |
| parent | 17168162fbcc6396b512d1580cad02f140937645 [diff] |
agx: Only emit the used components of gl_FragCoord In case a shader only use gl_FragCoord.xy, this avoids wasting coefficient registers for gl_FragCoord.zw which should be a small optimization. It's also less work for DCE but I'm less worried about that. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17198>