[Mesa-dev] [PATCH 1/2] nir: Add "viewport vector" system values

Eric Anholt eric at anholt.net
Wed Apr 3 19:03:43 UTC 2019


Alyssa Rosenzweig <alyssa at rosenzweig.io> writes:

> While a partial set of viewport system values exist, these are scalar
> values, which is a poor fit for viewport transformations on vector ISAs
> like Midgard (where the vec3 values for scale and offset each need to be
> coherent in a vec4 uniform slot to take advantage of vectorized
> transform math). This patch adds vec3 scale/offset fields corresponding
> to the 3D Gallium viewport / glViewport+depth
>
> Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
> Cc: Eric Anholt <eric at anholt.net>

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190403/5ad919ac/attachment.sig>


More information about the mesa-dev mailing list