mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
st/nine: Fix ps ff BLENDTEXTUREALPHA
This ff ps operation has the texture alpha as input. Thus we need to sample the texture. Fixes: https://github.com/iXit/wine-nine-standalone/issues/105 Signed-off-by: Axel Davy <davyaxel0@gmail.com> Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
This commit is contained in:
parent
9e9644666e
commit
a0288fa3b7
1 changed files with 6 additions and 2 deletions
|
|
@ -1351,7 +1351,9 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
|
|||
|
||||
if (key->ts[s].colorarg0 == D3DTA_TEXTURE ||
|
||||
key->ts[s].colorarg1 == D3DTA_TEXTURE ||
|
||||
key->ts[s].colorarg2 == D3DTA_TEXTURE) {
|
||||
key->ts[s].colorarg2 == D3DTA_TEXTURE ||
|
||||
key->ts[s].colorop == D3DTOP_BLENDTEXTUREALPHA ||
|
||||
key->ts[s].colorop == D3DTOP_BLENDTEXTUREALPHAPM) {
|
||||
ps.s[s] = ureg_DECL_sampler(ureg, s);
|
||||
ps.vT[s] = ureg_DECL_fs_input(ureg, texcoord_sn, s, TGSI_INTERPOLATE_PERSPECTIVE);
|
||||
}
|
||||
|
|
@ -1368,7 +1370,9 @@ nine_ff_build_ps(struct NineDevice9 *device, struct nine_ff_ps_key *key)
|
|||
|
||||
if (key->ts[s].alphaarg0 == D3DTA_TEXTURE ||
|
||||
key->ts[s].alphaarg1 == D3DTA_TEXTURE ||
|
||||
key->ts[s].alphaarg2 == D3DTA_TEXTURE) {
|
||||
key->ts[s].alphaarg2 == D3DTA_TEXTURE ||
|
||||
key->ts[s].colorop == D3DTOP_BLENDTEXTUREALPHA ||
|
||||
key->ts[s].colorop == D3DTOP_BLENDTEXTUREALPHAPM) {
|
||||
ps.s[s] = ureg_DECL_sampler(ureg, s);
|
||||
ps.vT[s] = ureg_DECL_fs_input(ureg, texcoord_sn, s, TGSI_INTERPOLATE_PERSPECTIVE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue