Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ddd0ec16
Commit
ddd0ec16
authored
Feb 17, 2008
by
Alexander Dorofeyev
Committed by
Alexandre Julliard
Feb 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Add test for branch instruction with non-zero offset.
parent
4981eda8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
d3d.c
dlls/ddraw/tests/d3d.c
+31
-1
No files found.
dlls/ddraw/tests/d3d.c
View file @
ddd0ec16
...
...
@@ -979,6 +979,8 @@ static void Direct3D1Test(void)
hr
=
IDirect3DExecuteBuffer_Lock
(
exebuf
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"IDirect3DExecuteBuffer_Lock failed: %08x
\n
"
,
hr
);
memset
(
desc
.
lpData
,
0
,
128
);
instr
=
desc
.
lpData
;
instr
[
idx
].
bOpcode
=
D3DOP_BRANCHFORWARD
;
instr
[
idx
].
bSize
=
sizeof
(
*
branch
);
...
...
@@ -992,7 +994,7 @@ static void Direct3D1Test(void)
idx
+=
(
sizeof
(
*
branch
)
/
sizeof
(
*
instr
));
instr
[
idx
].
bOpcode
=
D3DOP_EXIT
;
instr
[
idx
].
bSize
=
0
;
instr
[
idx
].
bSize
=
0
;
instr
[
idx
].
wCount
=
0
;
hr
=
IDirect3DExecuteBuffer_Unlock
(
exebuf
);
ok
(
hr
==
D3D_OK
,
"IDirect3DExecuteBuffer_Unlock failed: %08x
\n
"
,
hr
);
...
...
@@ -1020,6 +1022,34 @@ static void Direct3D1Test(void)
hr
=
IDirect3DDevice_Execute
(
dev1
,
exebuf
,
vp
,
D3DEXECUTE_CLIPPED
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice_Execute returned %08x
\n
"
,
hr
);
memset
(
&
desc
,
0
,
sizeof
(
desc
));
desc
.
dwSize
=
sizeof
(
desc
);
hr
=
IDirect3DExecuteBuffer_Lock
(
exebuf
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"IDirect3DExecuteBuffer_Lock failed: %08x
\n
"
,
hr
);
memset
(
desc
.
lpData
,
0
,
128
);
instr
=
desc
.
lpData
;
idx
=
0
;
instr
[
idx
].
bOpcode
=
D3DOP_BRANCHFORWARD
;
instr
[
idx
].
bSize
=
sizeof
(
*
branch
);
instr
[
idx
].
wCount
=
1
;
idx
++
;
branch
=
(
D3DBRANCH
*
)
&
instr
[
idx
];
branch
->
dwMask
=
0x0
;
branch
->
dwValue
=
1
;
branch
->
bNegate
=
TRUE
;
branch
->
dwOffset
=
64
;
instr
=
(
D3DINSTRUCTION
*
)((
char
*
)
desc
.
lpData
+
64
);
instr
[
0
].
bOpcode
=
D3DOP_EXIT
;
instr
[
0
].
bSize
=
0
;
instr
[
0
].
wCount
=
0
;
hr
=
IDirect3DExecuteBuffer_Unlock
(
exebuf
);
ok
(
hr
==
D3D_OK
,
"IDirect3DExecuteBuffer_Unlock failed: %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice_Execute
(
dev1
,
exebuf
,
vp
,
D3DEXECUTE_CLIPPED
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice_Execute returned %08x
\n
"
,
hr
);
memset
(
&
transformdata
,
0
,
sizeof
(
transformdata
));
transformdata
.
dwSize
=
sizeof
(
transformdata
);
transformdata
.
lpIn
=
(
void
*
)
testverts
;
...
...
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