diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2022-07-13 09:49:46 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2022-07-29 17:43:06 -0700 |
commit | d8be6896b50c2bed211d3da7c4c10076ff247f4f (patch) | |
tree | 42822f6c198197cfd0607b16f9a4726d957ca31c | |
parent | 73fff95b0e151294989d5061a862633da5e3c393 (diff) |
texenv_combine: Add OPERAND2_ALPHA support for ONE_MINUS_SRC_ALPHA
This is feature is not part of EXT_texture_env_combine, but it was added
by basically every extension that came after. All of the
ATI_texture_env_combine3 test cases in this test try to use this
feature, and they all fail with:
Problem in combine(): bad alphaOperand2
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/706>
-rw-r--r-- | tests/spec/ext_texture_env_combine/combine.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/spec/ext_texture_env_combine/combine.c b/tests/spec/ext_texture_env_combine/combine.c index ca7cb0a00..0b6486357 100644 --- a/tests/spec/ext_texture_env_combine/combine.c +++ b/tests/spec/ext_texture_env_combine/combine.c @@ -636,6 +636,9 @@ compute_tex_combine(int tex_unit, const float prev_color[4], float result[4]) case GL_SRC_ALPHA: term2[3] = alpha_src2[3]; break; + case GL_ONE_MINUS_SRC_ALPHA: + term2[3] = 1.0 - alpha_src2[3]; + break; default: problem("bad alphaOperand2"); return; |