mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
Make _SAT instructions compile correctly.
This commit is contained in:
parent
4d914b80e1
commit
aa90495915
1 changed files with 4 additions and 3 deletions
|
|
@ -240,7 +240,8 @@ static void print_header( struct fragment_program *p )
|
|||
/* The usual macros, not really needed, but handy:
|
||||
*/
|
||||
emit(p, "#define MIN2(x,y) ((x)<(y)?(x):(y))\n"
|
||||
"#define MAX2(x,y) ((x)<(y)?(x):(y))\n");
|
||||
"#define MAX2(x,y) ((x)<(y)?(x):(y))\n"
|
||||
"#define SATURATE(x) ((x)>1.0?1.0:((x)<0.0?0.0:(x)))\n");
|
||||
|
||||
/* Our function!
|
||||
*/
|
||||
|
|
@ -449,9 +450,9 @@ static void saturate( struct fragment_program *p,
|
|||
{
|
||||
emit(p, " ");
|
||||
print_dest(p, inst, i);
|
||||
emit(p, " = CLAMPF( ");
|
||||
emit(p, " = SATURATE( ");
|
||||
print_dest(p, inst, i);
|
||||
emit(p, ", 0.0, 1.0);\n");
|
||||
emit(p, ");\n");
|
||||
}
|
||||
|
||||
static void assign_single( GLuint i,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue