mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 07:10:36 +02:00
r600: clear position enable bit when when wpos is not used by FP
Makes doom3 alot nicer..
This commit is contained in:
parent
6f8b4d9e36
commit
f7285bdffc
1 changed files with 5 additions and 0 deletions
|
|
@ -341,6 +341,11 @@ GLboolean r700SetupFragmentProgram(GLcontext * ctx)
|
|||
SETbit(r700->SPI_PS_IN_CONTROL_0.u32All, POSITION_ENA_bit);
|
||||
SETbit(r700->SPI_INPUT_Z.u32All, PROVIDE_Z_TO_SPI_bit);
|
||||
}
|
||||
else
|
||||
{
|
||||
CLEARbit(r700->SPI_PS_IN_CONTROL_0.u32All, POSITION_ENA_bit);
|
||||
CLEARbit(r700->SPI_INPUT_Z.u32All, PROVIDE_Z_TO_SPI_bit);
|
||||
}
|
||||
|
||||
ui = (unNumOfReg < ui) ? ui : unNumOfReg;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue