mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
st/nine: Implement TEXDP3
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Axel Davy <axel.davy@ens.fr> Cc: "10.4" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
f19e699368
commit
09eb1e901f
1 changed files with 11 additions and 1 deletions
|
|
@ -2252,7 +2252,17 @@ DECL_SPECIAL(TEXM3x2DEPTH)
|
|||
|
||||
DECL_SPECIAL(TEXDP3)
|
||||
{
|
||||
STUB(D3DERR_INVALIDCALL);
|
||||
struct ureg_program *ureg = tx->ureg;
|
||||
struct ureg_dst dst = tx_dst_param(tx, &tx->insn.dst[0]);
|
||||
const int m = tx->insn.dst[0].idx;
|
||||
const int n = tx->insn.src[0].idx;
|
||||
assert(m >= 0 && m > n);
|
||||
|
||||
tx_texcoord_alloc(tx, m);
|
||||
|
||||
ureg_DP3(ureg, dst, tx->regs.vT[m], ureg_src(tx->regs.tS[n]));
|
||||
|
||||
return D3D_OK;
|
||||
}
|
||||
|
||||
DECL_SPECIAL(TEXM3x3)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue