Skip to content

Commit

Permalink
Added some FIXMEs.
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
icculus committed Jun 19, 2008
1 parent 03c6931 commit f93452c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojoshader.c
Expand Up @@ -4271,6 +4271,7 @@ static void emit_ARB1_SINCOS(Context *ctx)

if (need_sin)
{
// !!! FIXME: use SRCMOD_ABS here?
output_line(ctx, "ABS %s.x, %s.x;", dst, src0);
output_line(ctx, "MUL %s.x, %s.x, -0.40528473456935108577551785283891;", dst, dst);
output_line(ctx, "MUL %s.x, %s.x, 1.2732395447351626861510701069801;", scratch, src0);
Expand Down Expand Up @@ -4392,6 +4393,8 @@ static void emit_ARB1_MOVA(Context *ctx)
char addr[32];
snprintf(addr, sizeof (addr), "addr%d", ctx->dest_arg.regnum);

// !!! FIXME: we can optimize this if src_mod is ABS or ABSNEGATE.

// ARL uses floor(), but D3D expects round-to-nearest.
// There is probably a more efficient way to do this.
if (shader_is_pixel(ctx)) // CMP only exists in fragment programs. :/
Expand Down

0 comments on commit f93452c

Please sign in to comment.