mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
st/nine: Do not use scratch for face register
Scratch registers are reused every instructions.
Since vFace is reused, a new temporary register
should be used.
Fixes: https://github.com/iXit/Mesa-3D/issues/311
Signed-off-by: Axel Davy <davyaxel0@gmail.com>
CC: "17.3 18.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit d899826733)
This commit is contained in:
parent
8521e00b5c
commit
2165cc0a17
1 changed files with 1 additions and 1 deletions
|
|
@ -1079,7 +1079,7 @@ tx_src_param(struct shader_translator *tx, const struct sm1_src_param *param)
|
|||
case D3DSMO_FACE:
|
||||
if (ureg_src_is_undef(tx->regs.vFace)) {
|
||||
if (tx->face_is_sysval_integer) {
|
||||
tmp = tx_scratch(tx);
|
||||
tmp = ureg_DECL_temporary(ureg);
|
||||
tx->regs.vFace =
|
||||
ureg_DECL_system_value(ureg, TGSI_SEMANTIC_FACE, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue