mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 08:10:32 +01:00
r300: Corrected some progs/fp/* regressions from the BFC patch.
I'm not completely sure this is correct; it restores the old behaviour.
This commit is contained in:
parent
8a016d2130
commit
7b410f366f
1 changed files with 18 additions and 0 deletions
|
|
@ -1497,6 +1497,24 @@ void r300SelectVertexShader(r300ContextPtr r300)
|
|||
}
|
||||
wanted_key.InputsRead = vpc->mesa_program.Base.InputsRead;
|
||||
wanted_key.OutputsWritten = vpc->mesa_program.Base.OutputsWritten;
|
||||
|
||||
wanted_key.OutputsWritten |= 1 << VERT_RESULT_HPOS;
|
||||
|
||||
if (InputsRead & FRAG_BIT_COL0) {
|
||||
wanted_key.OutputsWritten |= 1 << VERT_RESULT_COL0;
|
||||
}
|
||||
|
||||
if ((InputsRead & FRAG_BIT_COL1)) {
|
||||
wanted_key.OutputsWritten |= 1 << VERT_RESULT_COL1;
|
||||
}
|
||||
|
||||
for (i = 0; i < ctx->Const.MaxTextureUnits; i++) {
|
||||
if (InputsRead & (FRAG_BIT_TEX0 << i)) {
|
||||
wanted_key.OutputsWritten |=
|
||||
1 << (VERT_RESULT_TEX0 + i);
|
||||
}
|
||||
}
|
||||
|
||||
if (vpc->mesa_program.IsPositionInvariant) {
|
||||
/* we wan't position don't we ? */
|
||||
wanted_key.InputsRead |= (1 << VERT_ATTRIB_POS);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue