diff options
author | Axel Davy <[email protected]> | 2014-12-28 14:42:33 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-01-23 00:47:24 +0000 |
commit | 63e668eb1880ac7251bec1dc96689b678e9fda25 (patch) | |
tree | 3375a6fc19ef112a76fe503f2d819039884c4d16 /src/gallium/state_trackers | |
parent | 2b4c5777306c9dd20b3431516e4ae9a64feb2116 (diff) |
st/nine: Implement TEXDP3
Reviewed-by: Ilia Mirkin <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Cc: "10.4" <[email protected]>
(cherry picked from commit 09eb1e901f4d8e8b18675eb92e5f43dcbd831501)
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/nine_shader.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c index cb0793efc59..57eb482644d 100644 --- a/src/gallium/state_trackers/nine/nine_shader.c +++ b/src/gallium/state_trackers/nine/nine_shader.c @@ -2246,7 +2246,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) |