diff options
author | Brian <[email protected]> | 2008-11-08 10:29:03 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-11-08 10:29:03 -0700 |
commit | e24afc808f7f00941a01fcedeb76df16c062170f (patch) | |
tree | 58fb61d49db3577e6c75b1533d3b7374b6070143 /src | |
parent | 87d1a26ba38e75f6988e094dbfbc0f77c0ae502b (diff) |
mesa: use NRM3 in emit_normalize_vec3() when drivers are ready
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/ffvertex_prog.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c index 5155c01e413..0d1346420c7 100644 --- a/src/mesa/main/ffvertex_prog.c +++ b/src/mesa/main/ffvertex_prog.c @@ -726,11 +726,16 @@ static void emit_normalize_vec3( struct tnl_program *p, struct ureg dest, struct ureg src ) { +#if 0 + /* XXX use this when drivers are ready for NRM3 */ + emit_op1(p, OPCODE_NRM3, dest, WRITEMASK_XYZ, src); +#else struct ureg tmp = get_temp(p); emit_op2(p, OPCODE_DP3, tmp, WRITEMASK_X, src, src); emit_op1(p, OPCODE_RSQ, tmp, WRITEMASK_X, tmp); emit_op2(p, OPCODE_MUL, dest, 0, src, swizzle1(tmp, X)); release_temp(p, tmp); +#endif } static void emit_passthrough( struct tnl_program *p, |