fix cos/sin range reduction for i915 driver too

This commit is contained in:
Roland Scheidegger
2007-07-29 19:44:55 +02:00
parent dde814776c
commit ab02552cdd

View File

@@ -304,7 +304,7 @@ static void upload_program( struct i915_fragment_program *p )
A0_MUL, A0_MUL,
tmp, A0_DEST_CHANNEL_X, 0, tmp, A0_DEST_CHANNEL_X, 0,
src0, src0,
i915_emit_const1f(p, 1.0/(M_PI * 2)), i915_emit_const1f(p, 1.0/(M_PI)),
0); 0);
i915_emit_arith( p, i915_emit_arith( p,
@@ -319,7 +319,7 @@ static void upload_program( struct i915_fragment_program *p )
A0_MUL, A0_MUL,
tmp, A0_DEST_CHANNEL_X, 0, tmp, A0_DEST_CHANNEL_X, 0,
tmp, tmp,
i915_emit_const1f(p, (M_PI * 2)), i915_emit_const1f(p, (M_PI)),
0); 0);
/* /*
@@ -645,7 +645,7 @@ static void upload_program( struct i915_fragment_program *p )
A0_MUL, A0_MUL,
tmp, A0_DEST_CHANNEL_X, 0, tmp, A0_DEST_CHANNEL_X, 0,
src0, src0,
i915_emit_const1f(p, 1.0/(M_PI * 2)), i915_emit_const1f(p, 1.0/(M_PI)),
0); 0);
i915_emit_arith( p, i915_emit_arith( p,
@@ -660,7 +660,7 @@ static void upload_program( struct i915_fragment_program *p )
A0_MUL, A0_MUL,
tmp, A0_DEST_CHANNEL_X, 0, tmp, A0_DEST_CHANNEL_X, 0,
tmp, tmp,
i915_emit_const1f(p, (M_PI * 2)), i915_emit_const1f(p, (M_PI)),
0); 0);
/* /*