mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
st/nine: Fix wrong assert in nine_shader
The sampler src index was wrong for texldl and texldd Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
8d3e063e68
commit
716bef2643
1 changed files with 4 additions and 4 deletions
|
|
@ -2493,8 +2493,8 @@ DECL_SPECIAL(TEXLDD)
|
|||
tx_src_param(tx, &tx->insn.src[2]),
|
||||
tx_src_param(tx, &tx->insn.src[3])
|
||||
};
|
||||
assert(tx->insn.src[3].idx >= 0 &&
|
||||
tx->insn.src[3].idx < Elements(tx->sampler_targets));
|
||||
assert(tx->insn.src[1].idx >= 0 &&
|
||||
tx->insn.src[1].idx < Elements(tx->sampler_targets));
|
||||
target = tx->sampler_targets[tx->insn.src[1].idx];
|
||||
|
||||
ureg_TXD(tx->ureg, dst, target, src[0], src[2], src[3], src[1]);
|
||||
|
|
@ -2509,8 +2509,8 @@ DECL_SPECIAL(TEXLDL)
|
|||
tx_src_param(tx, &tx->insn.src[0]),
|
||||
tx_src_param(tx, &tx->insn.src[1])
|
||||
};
|
||||
assert(tx->insn.src[3].idx >= 0 &&
|
||||
tx->insn.src[3].idx < Elements(tx->sampler_targets));
|
||||
assert(tx->insn.src[1].idx >= 0 &&
|
||||
tx->insn.src[1].idx < Elements(tx->sampler_targets));
|
||||
target = tx->sampler_targets[tx->insn.src[1].idx];
|
||||
|
||||
ureg_TXL(tx->ureg, dst, target, src[0], src[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue