Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6feffa6e
Commit
6feffa6e
authored
Jul 22, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Implement d3d10_effect_depth_stencil_variable_GetBackingStore().
parent
ea05d7b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
29 deletions
+37
-29
effect.c
dlls/d3d10/effect.c
+12
-2
effect.c
dlls/d3d10/tests/effect.c
+25
-27
No files found.
dlls/d3d10/effect.c
View file @
6feffa6e
...
...
@@ -6091,9 +6091,19 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_variable_GetDepthSte
static
HRESULT
STDMETHODCALLTYPE
d3d10_effect_depth_stencil_variable_GetBackingStore
(
ID3D10EffectDepthStencilVariable
*
iface
,
UINT
index
,
D3D10_DEPTH_STENCIL_DESC
*
desc
)
{
FIXME
(
"iface %p, index %u, desc %p stub!
\n
"
,
iface
,
index
,
desc
);
struct
d3d10_effect_variable
*
v
=
impl_from_ID3D10EffectVariable
((
ID3D10EffectVariable
*
)
iface
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, index %u, desc %p.
\n
"
,
iface
,
index
,
desc
);
if
(
index
>=
max
(
v
->
type
->
element_count
,
1
))
{
WARN
(
"Invalid index %u.
\n
"
,
index
);
return
E_FAIL
;
}
*
desc
=
((
D3D10_DEPTH_STENCIL_DESC
*
)
v
->
data
)[
index
];
return
S_OK
;
}
...
...
dlls/d3d10/tests/effect.c
View file @
6feffa6e
...
...
@@ -3866,30 +3866,29 @@ static void test_effect_state_groups(ID3D10Device *device)
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"ds_state"
);
d
=
v
->
lpVtbl
->
AsDepthStencil
(
v
);
memset
(
&
ds_desc
,
0
,
sizeof
(
ds_desc
));
d
->
lpVtbl
->
GetBackingStore
(
d
,
0
,
&
ds_desc
);
ok
(
!
ds_desc
.
DepthEnable
,
"Got unexpected DepthEnable %#x.
\n
"
,
ds_desc
.
DepthEnable
);
ok
(
ds_desc
.
DepthWriteMask
==
D3D10_DEPTH_WRITE_MASK_ZERO
,
"Got unexpected DepthWriteMask %#x.
\n
"
,
ds_desc
.
DepthWriteMask
);
todo_wine
ok
(
ds_desc
.
DepthFunc
==
D3D10_COMPARISON_EQUAL
,
"Got unexpected DepthFunc %#x.
\n
"
,
ds_desc
.
DepthFunc
);
todo_wine
ok
(
ds_desc
.
StencilEnable
,
"Got unexpected StencilEnable %#x.
\n
"
,
ds_desc
.
StencilEnable
);
todo_wine
ok
(
ds_desc
.
StencilReadMask
==
0x4
,
"Got unexpected StencilReadMask %#x.
\n
"
,
ds_desc
.
StencilReadMask
);
todo_wine
ok
(
ds_desc
.
StencilWriteMask
==
0x5
,
"Got unexpected StencilWriteMask %#x.
\n
"
,
ds_desc
.
StencilWriteMask
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilFailOp
==
D3D10_STENCIL_OP_INVERT
,
"Got unexpected FrontFaceStencilFail %#x.
\n
"
,
ok
(
ds_desc
.
DepthFunc
==
D3D10_COMPARISON_EQUAL
,
"Got unexpected DepthFunc %#x.
\n
"
,
ds_desc
.
DepthFunc
);
ok
(
ds_desc
.
StencilEnable
,
"Got unexpected StencilEnable %#x.
\n
"
,
ds_desc
.
StencilEnable
);
ok
(
ds_desc
.
StencilReadMask
==
0x4
,
"Got unexpected StencilReadMask %#x.
\n
"
,
ds_desc
.
StencilReadMask
);
ok
(
ds_desc
.
StencilWriteMask
==
0x5
,
"Got unexpected StencilWriteMask %#x.
\n
"
,
ds_desc
.
StencilWriteMask
);
ok
(
ds_desc
.
FrontFace
.
StencilFailOp
==
D3D10_STENCIL_OP_INVERT
,
"Got unexpected FrontFaceStencilFail %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilFailOp
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_INCR
,
ok
(
ds_desc
.
FrontFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_INCR
,
"Got unexpected FrontFaceStencilDepthFail %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilDepthFailOp
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilPassOp
==
D3D10_STENCIL_OP_DECR
,
"Got unexpected FrontFaceStencilPass %#x.
\n
"
,
ok
(
ds_desc
.
FrontFace
.
StencilPassOp
==
D3D10_STENCIL_OP_DECR
,
"Got unexpected FrontFaceStencilPass %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilPassOp
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilFunc
==
D3D10_COMPARISON_LESS_EQUAL
,
"Got unexpected FrontFaceStencilFunc %#x.
\n
"
,
ok
(
ds_desc
.
FrontFace
.
StencilFunc
==
D3D10_COMPARISON_LESS_EQUAL
,
"Got unexpected FrontFaceStencilFunc %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilFunc
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilFailOp
==
D3D10_STENCIL_OP_REPLACE
,
"Got unexpected BackFaceStencilFail %#x.
\n
"
,
ok
(
ds_desc
.
BackFace
.
StencilFailOp
==
D3D10_STENCIL_OP_REPLACE
,
"Got unexpected BackFaceStencilFail %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilFailOp
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_INCR_SAT
,
ok
(
ds_desc
.
BackFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_INCR_SAT
,
"Got unexpected BackFaceStencilDepthFail %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilDepthFailOp
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilPassOp
==
D3D10_STENCIL_OP_DECR_SAT
,
"Got unexpected BackFaceStencilPass %#x.
\n
"
,
ok
(
ds_desc
.
BackFace
.
StencilPassOp
==
D3D10_STENCIL_OP_DECR_SAT
,
"Got unexpected BackFaceStencilPass %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilPassOp
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilFunc
==
D3D10_COMPARISON_GREATER_EQUAL
,
"Got unexpected BackFaceStencilFunc %#x.
\n
"
,
ok
(
ds_desc
.
BackFace
.
StencilFunc
==
D3D10_COMPARISON_GREATER_EQUAL
,
"Got unexpected BackFaceStencilFunc %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilFunc
);
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"rast_state"
);
...
...
@@ -4116,30 +4115,29 @@ static void test_effect_state_group_defaults(ID3D10Device *device)
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"ds_state"
);
d
=
v
->
lpVtbl
->
AsDepthStencil
(
v
);
memset
(
&
ds_desc
,
0
,
sizeof
(
ds_desc
));
d
->
lpVtbl
->
GetBackingStore
(
d
,
0
,
&
ds_desc
);
todo_wine
ok
(
ds_desc
.
DepthEnable
,
"Got unexpected DepthEnable %#x.
\n
"
,
ds_desc
.
DepthEnable
);
todo_wine
ok
(
ds_desc
.
DepthWriteMask
==
D3D10_DEPTH_WRITE_MASK_ALL
,
"Got unexpected DepthWriteMask %#x.
\n
"
,
ok
(
ds_desc
.
DepthEnable
,
"Got unexpected DepthEnable %#x.
\n
"
,
ds_desc
.
DepthEnable
);
ok
(
ds_desc
.
DepthWriteMask
==
D3D10_DEPTH_WRITE_MASK_ALL
,
"Got unexpected DepthWriteMask %#x.
\n
"
,
ds_desc
.
DepthWriteMask
);
todo_wine
ok
(
ds_desc
.
DepthFunc
==
D3D10_COMPARISON_LESS
,
"Got unexpected DepthFunc %#x.
\n
"
,
ds_desc
.
DepthFunc
);
ok
(
ds_desc
.
DepthFunc
==
D3D10_COMPARISON_LESS
,
"Got unexpected DepthFunc %#x.
\n
"
,
ds_desc
.
DepthFunc
);
ok
(
!
ds_desc
.
StencilEnable
,
"Got unexpected StencilEnable %#x.
\n
"
,
ds_desc
.
StencilEnable
);
todo_wine
ok
(
ds_desc
.
StencilReadMask
==
0xff
,
"Got unexpected StencilReadMask %#x.
\n
"
,
ds_desc
.
StencilReadMask
);
todo_wine
ok
(
ds_desc
.
StencilWriteMask
==
0xff
,
"Got unexpected StencilWriteMask %#x.
\n
"
,
ds_desc
.
StencilWriteMask
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilFailOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected FrontFaceStencilFail %#x.
\n
"
,
ok
(
ds_desc
.
StencilReadMask
==
0xff
,
"Got unexpected StencilReadMask %#x.
\n
"
,
ds_desc
.
StencilReadMask
);
ok
(
ds_desc
.
StencilWriteMask
==
0xff
,
"Got unexpected StencilWriteMask %#x.
\n
"
,
ds_desc
.
StencilWriteMask
);
ok
(
ds_desc
.
FrontFace
.
StencilFailOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected FrontFaceStencilFail %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilFailOp
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_KEEP
,
ok
(
ds_desc
.
FrontFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected FrontFaceStencilDepthFail %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilDepthFailOp
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilPassOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected FrontFaceStencilPass %#x.
\n
"
,
ok
(
ds_desc
.
FrontFace
.
StencilPassOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected FrontFaceStencilPass %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilPassOp
);
todo_wine
ok
(
ds_desc
.
FrontFace
.
StencilFunc
==
D3D10_COMPARISON_ALWAYS
,
"Got unexpected FrontFaceStencilFunc %#x.
\n
"
,
ok
(
ds_desc
.
FrontFace
.
StencilFunc
==
D3D10_COMPARISON_ALWAYS
,
"Got unexpected FrontFaceStencilFunc %#x.
\n
"
,
ds_desc
.
FrontFace
.
StencilFunc
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilFailOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected BackFaceStencilFail %#x.
\n
"
,
ok
(
ds_desc
.
BackFace
.
StencilFailOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected BackFaceStencilFail %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilFailOp
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_KEEP
,
ok
(
ds_desc
.
BackFace
.
StencilDepthFailOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected BackFaceStencilDepthFail %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilDepthFailOp
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilPassOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected BackFaceStencilPass %#x.
\n
"
,
ok
(
ds_desc
.
BackFace
.
StencilPassOp
==
D3D10_STENCIL_OP_KEEP
,
"Got unexpected BackFaceStencilPass %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilPassOp
);
todo_wine
ok
(
ds_desc
.
BackFace
.
StencilFunc
==
D3D10_COMPARISON_ALWAYS
,
"Got unexpected BackFaceStencilFunc %#x.
\n
"
,
ok
(
ds_desc
.
BackFace
.
StencilFunc
==
D3D10_COMPARISON_ALWAYS
,
"Got unexpected BackFaceStencilFunc %#x.
\n
"
,
ds_desc
.
BackFace
.
StencilFunc
);
v
=
effect
->
lpVtbl
->
GetVariableByName
(
effect
,
"rast_state"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment