summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_opt_constant_fold.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2016-02-27 14:04:30 -0800
committerMatt Turner <mattst88@gmail.com>2016-03-01 11:41:29 -0800
commitfe2d2c7ad8793fbcc4761cf5b51270c296eb811c (patch)
tree9cdec4090aa4a63bde0339b4d04887fc1e12b4af /src/mesa/program/prog_opt_constant_fold.c
parent0d1f6c752f6c4c7c5c2ec6be569e4bdd33bef204 (diff)
downloadexternal_mesa3d-fe2d2c7ad8793fbcc4761cf5b51270c296eb811c.zip
external_mesa3d-fe2d2c7ad8793fbcc4761cf5b51270c296eb811c.tar.gz
external_mesa3d-fe2d2c7ad8793fbcc4761cf5b51270c296eb811c.tar.bz2
program: Remove NV_fragment_program Abs support.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/program/prog_opt_constant_fold.c')
-rw-r--r--src/mesa/program/prog_opt_constant_fold.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/program/prog_opt_constant_fold.c b/src/mesa/program/prog_opt_constant_fold.c
index e2518e6..1d796dc 100644
--- a/src/mesa/program/prog_opt_constant_fold.c
+++ b/src/mesa/program/prog_opt_constant_fold.c
@@ -82,7 +82,6 @@ src_regs_are_same(const struct prog_src_register *a,
return (a->File == b->File)
&& (a->Index == b->Index)
&& (a->Swizzle == b->Swizzle)
- && (a->Abs == b->Abs)
&& (a->Negate == b->Negate)
&& (a->RelAddr == 0)
&& (b->RelAddr == 0);
@@ -99,13 +98,6 @@ get_value(struct gl_program *prog, struct prog_src_register *r, float *data)
data[2] = value[GET_SWZ(r->Swizzle, 2)].f;
data[3] = value[GET_SWZ(r->Swizzle, 3)].f;
- if (r->Abs) {
- data[0] = fabsf(data[0]);
- data[1] = fabsf(data[1]);
- data[2] = fabsf(data[2]);
- data[3] = fabsf(data[3]);
- }
-
if (r->Negate & 0x01) {
data[0] = -data[0];
}