diff options
author | Jonathan Marek <[email protected]> | 2020-06-21 16:31:10 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-01 13:52:59 +0000 |
commit | 33457fc705de00e326830abe3322f6bf261ec3e7 (patch) | |
tree | e2e6a0ac0b73081817195e97b6c7f5f1f7cfb067 /src/freedreno/ir3/ir3_shader.h | |
parent | 75fef41f16c7b028c3c7809eb7f9d8e3ea4e259c (diff) |
freedreno/ir3: add generic get_barycentric()
This will be useful to support the missing barycentric sysvals.
Signed-off-by: Jonathan Marek <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5582>
Diffstat (limited to 'src/freedreno/ir3/ir3_shader.h')
-rw-r--r-- | src/freedreno/ir3/ir3_shader.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h index 3d5dac453d3..7430bed03f7 100644 --- a/src/freedreno/ir3/ir3_shader.h +++ b/src/freedreno/ir3/ir3_shader.h @@ -74,6 +74,18 @@ enum ir3_driver_param { #define IR3_MAX_SO_OUTPUTS 64 #define IR3_MAX_UBO_PUSH_RANGES 32 +/* mirrors SYSTEM_VALUE_BARYCENTRIC_ but starting from 0 */ +enum ir3_bary { + IJ_PERSP_PIXEL, + IJ_PERSP_SAMPLE, + IJ_PERSP_CENTROID, + IJ_PERSP_SIZE, + IJ_LINEAR_PIXEL, + IJ_LINEAR_CENTROID, + IJ_LINEAR_SAMPLE, + IJ_COUNT, +}; + /** * Description of a lowered UBO. */ |