nir: Add blend_const_color_rgba sysval

Graphics / Mesa 3D Graphics Library / Mesa - Alyssa Rosenzweig [] - 10 May 2019 15:49 EDT

This represents a float vec4 constant color, as passed to glBlendColor. While the existing 4 shader sysvals are retained to minimize code churn, a single vectorized intrinsic is required for efficient blending on
vector architectures. (This may also apply to archictectures like Bifrost where ALU is scalar but load/store is vector; it largely depends on how blending is implemented per-driver.)

006cafc2430 nir: Add blend_const_color_rgba sysval
src/compiler/nir/ | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)


  • Share