mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 18:28:12 +02:00
st/nine: Forbid POSITION0 for PS3.0
POSITION0 input is forbidden for PS3.0 apparently. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
217d969746
commit
a77d8cd710
1 changed files with 5 additions and 0 deletions
|
|
@ -2054,6 +2054,11 @@ DECL_SPECIAL(DCL)
|
|||
assert(sem.reg.idx < ARRAY_SIZE(tx->regs.v));
|
||||
|
||||
if (tgsi.Name == TGSI_SEMANTIC_POSITION) {
|
||||
/* Position0/PositionT0 are forbidden (likely because vPos already does that) */
|
||||
if (sem.usage == D3DDECLUSAGE_POSITION ||
|
||||
sem.usage == D3DDECLUSAGE_POSITIONT)
|
||||
return D3DERR_INVALIDCALL;
|
||||
/* Following code is for depth */
|
||||
tx->regs.v[sem.reg.idx] = nine_get_position_input(tx);
|
||||
return D3D_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue