mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
Revert "mesa: Remove pointless comparison of unsigned integer with a negative constant."
This reverts commit a05fdbcb71.
Removing the comparison is wrong. The comparison with -1 should be changed
to another value (probably PROGRAM_UNDEFINED) along with another
change in the shader assembler.
Conflicts:
src/mesa/shader/prog_execute.c
This commit is contained in:
parent
bb35000b4b
commit
45df4bad9f
1 changed files with 9 additions and 4 deletions
|
|
@ -1767,10 +1767,15 @@ _mesa_execute_program(GLcontext * ctx,
|
|||
break;
|
||||
case OPCODE_PRINT:
|
||||
{
|
||||
GLfloat a[4];
|
||||
fetch_vector4(&inst->SrcReg[0], machine, a);
|
||||
printf("%s%g, %g, %g, %g\n", (const char *) inst->Data,
|
||||
a[0], a[1], a[2], a[3]);
|
||||
if (inst->SrcReg[0].File != -1) {
|
||||
GLfloat a[4];
|
||||
fetch_vector4(&inst->SrcReg[0], machine, a);
|
||||
printf("%s%g, %g, %g, %g\n", (const char *) inst->Data,
|
||||
a[0], a[1], a[2], a[3]);
|
||||
}
|
||||
else {
|
||||
printf("%s\n", (const char *) inst->Data);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case OPCODE_END:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue