----- Original Message -----
From: Eero Pajarre <[EMAIL PROTECTED]>
To: emanuel stiebler <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, March 09, 2000 12:56
Subject: Re: [Mesa-dev] tritemp.h


> All the definitions of the INNER_LOOP
> seem to start with something like ...

Nope. That's why i thought about this. I was looking at osmesa.c

> #define INNER_LOOP( LEFT, RIGHT, Y ) \
> { \
>    GLint i, n = RIGHT-LEFT; \

n = RIGHT - LEFT;

NO cpu time ? (this are no constants, are variables !)

>    GLdepth zspan[MAX_WIDTH]; \
>            GLfloat lambda[MAX_TEXTURE_UNITS][MAX_WIDTH]; \
>    if (n>0) { \
> ----- all the code is here-----
>            }
>         }
>
> So I think the check would be sort of redundant.

Don't think so. Why have we to do the decision in every routine, when you
could do it outside already ?

> (declaring local variables like zspan and lambda,
> does not usually consume CPU time during the execution,
> all the "work" is done during compile time)

But even if it would be true, every time you write one of this triangle
routines, you have to think about this case.

cheers,
emanuel




_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to