mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
softpipe: setup machine->Face without a conditional
This commit is contained in:
parent
574715d836
commit
e0399fddf2
1 changed files with 2 additions and 5 deletions
|
|
@ -127,11 +127,8 @@ exec_run( const struct sp_fragment_shader *base,
|
|||
(float)quad->input.x0, (float)quad->input.y0,
|
||||
&machine->QuadPos);
|
||||
|
||||
if (quad->input.facing) {
|
||||
machine->Face = -1.0f;
|
||||
} else {
|
||||
machine->Face = 1.0f;
|
||||
}
|
||||
/* convert 0 to 1.0 and 1 to -1.0 */
|
||||
machine->Face = (float) (quad->input.facing * -2 + 1);
|
||||
|
||||
quad->inout.mask &= tgsi_exec_machine_run( machine );
|
||||
if (quad->inout.mask == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue