[Mesa-dev] [PATCH v2 1/2] nir: Add nir_lower_viewport_transform

Alyssa Rosenzweig alyssa at rosenzweig.io
Fri Apr 12 23:49:38 UTC 2019


> This should be done per nir function, and I suggest to divide this function
> into more sub-functions to follow conventions of other nir_lower_*
> implementation.

You only should be writing gl_Position once anyway; why reinit for
functions that likely won't use them?

lower_alpha_test does it this way; it's fine.


More information about the mesa-dev mailing list