diff options
author | Connor Abbott <[email protected]> | 2019-05-27 17:48:42 +0200 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2019-07-08 14:18:34 +0200 |
commit | e5536aa584e91d2a859c2f905d9ce40fc410470b (patch) | |
tree | da23a47a2f5c32c565f1e6dbe9acb34c0c988819 /src/compiler/nir/nir_intrinsics.py | |
parent | 118a66df9907772bb9e5503b736c95d7bb62d52c (diff) |
compiler: Add color system value
This is nice to have with radeonsi, where color varyings are handled
specially to avoid recompiles.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_intrinsics.py')
-rw-r--r-- | src/compiler/nir/nir_intrinsics.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_intrinsics.py b/src/compiler/nir/nir_intrinsics.py index 24bb0990805..70ff1b99de0 100644 --- a/src/compiler/nir/nir_intrinsics.py +++ b/src/compiler/nir/nir_intrinsics.py @@ -594,6 +594,12 @@ system_value("blend_const_color_rgba", 4) system_value("blend_const_color_rgba8888_unorm", 1) system_value("blend_const_color_aaaa8888_unorm", 1) +# System values for gl_Color, for radeonsi which interpolates these in the +# shader prolog to handle two-sided color without recompiles and therefore +# doesn't handle these in the main shader part like normal varyings. +system_value("color0", 4) +system_value("color1", 4) + # Barycentric coordinate intrinsics. # # These set up the barycentric coordinates for a particular interpolation. |