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
ceb4d259
Commit
ceb4d259
authored
Nov 04, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Get rid of the "data2" vertex data array in pretransformed_varying_test().
parent
f4aab54c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
62 additions
and
67 deletions
+62
-67
visual.c
dlls/d3d9/tests/visual.c
+62
-67
No files found.
dlls/d3d9/tests/visual.c
View file @
ceb4d259
...
@@ -6295,20 +6295,6 @@ static void nested_loop_test(IDirect3DDevice9 *device)
...
@@ -6295,20 +6295,6 @@ static void nested_loop_test(IDirect3DDevice9 *device)
IDirect3DVertexShader9_Release
(
vshader
);
IDirect3DVertexShader9_Release
(
vshader
);
}
}
struct
hugeVertex
{
float
pos_x
,
pos_y
,
pos_z
,
rhw
;
float
weight_1
,
weight_2
,
weight_3
,
weight_4
;
float
index_1
,
index_2
,
index_3
,
index_4
;
float
normal_1
,
normal_2
,
normal_3
,
normal_4
;
float
fog_1
,
fog_2
,
fog_3
,
fog_4
;
float
texcoord_1
,
texcoord_2
,
texcoord_3
,
texcoord_4
;
float
tangent_1
,
tangent_2
,
tangent_3
,
tangent_4
;
float
binormal_1
,
binormal_2
,
binormal_3
,
binormal_4
;
float
depth_1
,
depth_2
,
depth_3
,
depth_4
;
DWORD
diffuse
,
specular
;
};
static
void
pretransformed_varying_test
(
IDirect3DDevice9
*
device
)
static
void
pretransformed_varying_test
(
IDirect3DDevice9
*
device
)
{
{
/* dcl_position: fails to compile */
/* dcl_position: fails to compile */
...
@@ -6422,72 +6408,81 @@ static void pretransformed_varying_test(IDirect3DDevice9 *device)
...
@@ -6422,72 +6408,81 @@ static void pretransformed_varying_test(IDirect3DDevice9 *device)
{
0
,
148
,
D3DDECLTYPE_D3DCOLOR
,
D3DDECLMETHOD_DEFAULT
,
D3DDECLUSAGE_COLOR
,
1
},
{
0
,
148
,
D3DDECLTYPE_D3DCOLOR
,
D3DDECLMETHOD_DEFAULT
,
D3DDECLUSAGE_COLOR
,
1
},
D3DDECL_END
()
D3DDECL_END
()
};
};
struct
hugeVertex
data
[
4
]
=
{
static
const
struct
{
float
pos_x
,
pos_y
,
pos_z
,
rhw
;
float
weight_1
,
weight_2
,
weight_3
,
weight_4
;
float
index_1
,
index_2
,
index_3
,
index_4
;
float
normal_1
,
normal_2
,
normal_3
,
normal_4
;
float
fog_1
,
fog_2
,
fog_3
,
fog_4
;
float
texcoord_1
,
texcoord_2
,
texcoord_3
,
texcoord_4
;
float
tangent_1
,
tangent_2
,
tangent_3
,
tangent_4
;
float
binormal_1
,
binormal_2
,
binormal_3
,
binormal_4
;
float
depth_1
,
depth_2
,
depth_3
,
depth_4
;
D3DCOLOR
diffuse
;
D3DCOLOR
specular
;
}
data
[]
=
{
{
{
-
1
.
0
,
-
1
.
0
,
0
.
1
,
1
.
0
,
0
.
0
f
,
0
.
0
f
,
0
.
1
f
,
1
.
0
f
,
0
.
1
,
0
.
1
,
0
.
1
,
0
.
1
,
0
.
1
f
,
0
.
1
f
,
0
.
1
f
,
0
.
1
f
,
0
.
2
,
0
.
2
,
0
.
2
,
0
.
2
,
0
.
2
f
,
0
.
2
f
,
0
.
2
f
,
0
.
2
f
,
0
.
3
,
0
.
3
,
0
.
3
,
0
.
3
,
0
.
3
f
,
0
.
3
f
,
0
.
3
f
,
0
.
3
f
,
0
.
4
,
0
.
4
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f
,
0
.
1
f
,
0
.
1
f
,
0
.
2
,
0
.
2
,
0
.
2
,
0
.
2
,
0
.
2
f
,
0
.
2
f
,
0
.
2
f
,
0
.
2
f
,
0
.
3
,
0
.
3
,
0
.
3
,
0
.
3
,
0
.
3
f
,
0
.
3
f
,
0
.
3
f
,
0
.
3
f
,
0
.
4
,
0
.
4
,
0
.
4
,
0
.
4
,
0
.
4
f
,
0
.
4
f
,
0
.
4
f
,
0
.
4
f
,
0
.
50
,
0
.
55
,
0
.
55
,
0
.
55
,
0
.
5
f
,
0
.
55
f
,
0
.
55
f
,
0
.
55
f
,
0
.
6
,
0
.
6
,
0
.
6
,
0
.
7
,
0
.
6
f
,
0
.
6
f
,
0
.
6
f
,
0
.
7
f
,
0
.
7
,
0
.
7
,
0
.
7
,
0
.
6
,
0
.
7
f
,
0
.
7
f
,
0
.
7
f
,
0
.
6
f
,
0
.
8
,
0
.
8
,
0
.
8
,
0
.
8
,
0
.
8
f
,
0
.
8
f
,
0
.
8
f
,
0
.
8
f
,
0xe6e6e6e6
,
/* 0.9 * 256 */
0xe6e6e6e6
,
/* 0.9 * 256 */
0x224488ff
/* Nothing special */
0x224488ff
,
/* Nothing special */
},
},
};
};
struct
hugeVertex
data2
[
4
];
IDirect3DVertexDeclaration9
*
decl
;
IDirect3DVertexDeclaration9
*
decl
;
HRESULT
hr
;
HRESULT
hr
;
unsigned
int
i
;
unsigned
int
i
;
DWORD
color
;
DWORD
color
;
memcpy
(
data2
,
data
,
sizeof
(
data2
));
data2
[
0
].
pos_x
=
0
;
data2
[
0
].
pos_y
=
0
;
data2
[
1
].
pos_x
=
640
;
data2
[
1
].
pos_y
=
0
;
data2
[
2
].
pos_x
=
0
;
data2
[
2
].
pos_y
=
480
;
data2
[
3
].
pos_x
=
640
;
data2
[
3
].
pos_y
=
480
;
hr
=
IDirect3DDevice9_CreateVertexDeclaration
(
device
,
decl_elements
,
&
decl
);
hr
=
IDirect3DDevice9_CreateVertexDeclaration
(
device
,
decl_elements
,
&
decl
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_CreateVertexDeclaration returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_CreateVertexDeclaration returned %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetVertexDeclaration
(
device
,
decl
);
hr
=
IDirect3DDevice9_SetVertexDeclaration
(
device
,
decl
);
...
@@ -6512,7 +6507,7 @@ static void pretransformed_varying_test(IDirect3DDevice9 *device)
...
@@ -6512,7 +6507,7 @@ static void pretransformed_varying_test(IDirect3DDevice9 *device)
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_BeginScene returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_BeginScene returned %08x
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLESTRIP
,
2
,
data
2
,
sizeof
(
data2
[
0
]
));
hr
=
IDirect3DDevice9_DrawPrimitiveUP
(
device
,
D3DPT_TRIANGLESTRIP
,
2
,
data
,
sizeof
(
*
data
));
ok
(
hr
==
D3D_OK
,
"DrawPrimitiveUP failed (%08x)
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"DrawPrimitiveUP failed (%08x)
\n
"
,
hr
);
hr
=
IDirect3DDevice9_EndScene
(
device
);
hr
=
IDirect3DDevice9_EndScene
(
device
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_EndScene returned %08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_EndScene returned %08x
\n
"
,
hr
);
...
...
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