diff options
author | Matt Turner <[email protected]> | 2016-02-27 14:04:30 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2016-03-01 11:41:29 -0800 |
commit | fe2d2c7ad8793fbcc4761cf5b51270c296eb811c (patch) | |
tree | 9cdec4090aa4a63bde0339b4d04887fc1e12b4af /src/mesa/program/prog_execute.c | |
parent | 0d1f6c752f6c4c7c5c2ec6be569e4bdd33bef204 (diff) |
program: Remove NV_fragment_program Abs support.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Acked-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/program/prog_execute.c')
-rw-r--r-- | src/mesa/program/prog_execute.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mesa/program/prog_execute.c b/src/mesa/program/prog_execute.c index fec72eef960..8f167be60cd 100644 --- a/src/mesa/program/prog_execute.c +++ b/src/mesa/program/prog_execute.c @@ -200,12 +200,6 @@ fetch_vector4(const struct prog_src_register *source, result[3] = src[GET_SWZ(source->Swizzle, 3)]; } - if (source->Abs) { - result[0] = fabsf(result[0]); - result[1] = fabsf(result[1]); - result[2] = fabsf(result[2]); - result[3] = fabsf(result[3]); - } if (source->Negate) { assert(source->Negate == NEGATE_XYZW); result[0] = -result[0]; @@ -258,12 +252,6 @@ fetch_vector4_deriv(struct gl_context * ctx, result[2] = deriv[GET_SWZ(source->Swizzle, 2)]; result[3] = deriv[GET_SWZ(source->Swizzle, 3)]; - if (source->Abs) { - result[0] = fabsf(result[0]); - result[1] = fabsf(result[1]); - result[2] = fabsf(result[2]); - result[3] = fabsf(result[3]); - } if (source->Negate) { assert(source->Negate == NEGATE_XYZW); result[0] = -result[0]; @@ -289,9 +277,6 @@ fetch_vector1(const struct prog_src_register *source, result[0] = src[GET_SWZ(source->Swizzle, 0)]; - if (source->Abs) { - result[0] = fabsf(result[0]); - } if (source->Negate) { result[0] = -result[0]; } |