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
86ba5b60
Commit
86ba5b60
authored
Jul 16, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 16, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Get rid of struct tvertex.
parent
51f5bc90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
62 deletions
+76
-62
visual.c
dlls/d3d9/tests/visual.c
+76
-62
No files found.
dlls/d3d9/tests/visual.c
View file @
86ba5b60
...
...
@@ -209,12 +209,6 @@ static void cleanup_device(IDirect3DDevice9 *device)
}
}
struct
tvertex
{
float
x
,
y
,
z
,
rhw
;
DWORD
diffuse
;
};
struct
nvertex
{
float
x
,
y
,
z
;
...
...
@@ -2650,19 +2644,24 @@ static void z_range_test(void)
{{
1
.
0
f
,
0
.
0
f
,
-
1
.
1
f
},
0xff0000ff
},
{{
1
.
0
f
,
1
.
0
f
,
-
1
.
1
f
},
0xff0000ff
},
};
static
const
struct
tvertex
quad3
[]
=
static
const
struct
{
{
640
.
0
f
,
240
.
0
f
,
-
1
.
1
f
,
1
.
0
f
,
0xffffff00
},
{
640
.
0
f
,
480
.
0
f
,
-
1
.
1
f
,
1
.
0
f
,
0xffffff00
},
{
0
.
0
f
,
240
.
0
f
,
1
.
1
f
,
1
.
0
f
,
0xffffff00
},
{
0
.
0
f
,
480
.
0
f
,
1
.
1
f
,
1
.
0
f
,
0xffffff00
},
};
static
const
struct
tvertex
quad4
[]
=
struct
vec4
position
;
DWORD
diffuse
;
}
quad3
[]
=
{
{
640
.
0
f
,
240
.
0
f
,
-
1
.
1
f
,
1
.
0
f
,
0xff00ff00
},
{
640
.
0
f
,
480
.
0
f
,
-
1
.
1
f
,
1
.
0
f
,
0xff00ff00
},
{
0
.
0
f
,
240
.
0
f
,
1
.
1
f
,
1
.
0
f
,
0xff00ff00
},
{
0
.
0
f
,
480
.
0
f
,
1
.
1
f
,
1
.
0
f
,
0xff00ff00
},
{{
640
.
0
f
,
240
.
0
f
,
-
1
.
1
f
,
1
.
0
f
},
0xffffff00
},
{{
640
.
0
f
,
480
.
0
f
,
-
1
.
1
f
,
1
.
0
f
},
0xffffff00
},
{{
0
.
0
f
,
240
.
0
f
,
1
.
1
f
,
1
.
0
f
},
0xffffff00
},
{{
0
.
0
f
,
480
.
0
f
,
1
.
1
f
,
1
.
0
f
},
0xffffff00
},
},
quad4
[]
=
{
{{
640
.
0
f
,
240
.
0
f
,
-
1
.
1
f
,
1
.
0
f
},
0xff00ff00
},
{{
640
.
0
f
,
480
.
0
f
,
-
1
.
1
f
,
1
.
0
f
},
0xff00ff00
},
{{
0
.
0
f
,
240
.
0
f
,
1
.
1
f
,
1
.
0
f
},
0xff00ff00
},
{{
0
.
0
f
,
480
.
0
f
,
1
.
1
f
,
1
.
0
f
},
0xff00ff00
},
};
static
const
DWORD
shader_code
[]
=
{
...
...
@@ -8078,12 +8077,17 @@ static void fixed_function_decl_test(void)
0
.
0
f
,
0
.
0
f
,
0
.
1
f
,
0
.
0
f
,
1
.
0
f
,
0
.
1
f
,
};
static
const
struct
tvertex
quad_transformed
[]
=
static
const
struct
{
{
90
,
110
,
0
.
1
,
2
.
0
,
0x00ffff00
},
{
570
,
110
,
0
.
1
,
2
.
0
,
0x00ffff00
},
{
90
,
300
,
0
.
1
,
2
.
0
,
0x00ffff00
},
{
570
,
300
,
0
.
1
,
2
.
0
,
0x00ffff00
}
struct
vec4
position
;
DWORD
diffuse
;
}
quad_transformed
[]
=
{
{{
90
.
0
f
,
110
.
0
f
,
0
.
1
f
,
2
.
0
f
},
0x00ffff00
},
{{
570
.
0
f
,
110
.
0
f
,
0
.
1
f
,
2
.
0
f
},
0x00ffff00
},
{{
90
.
0
f
,
300
.
0
f
,
0
.
1
f
,
2
.
0
f
},
0x00ffff00
},
{{
570
.
0
f
,
300
.
0
f
,
0
.
1
f
,
2
.
0
f
},
0x00ffff00
},
};
window
=
CreateWindowA
(
"static"
,
"d3d9_test"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
...
...
@@ -12312,33 +12316,38 @@ static void depth_clamp_test(void)
HWND
window
;
HRESULT
hr
;
static
const
struct
tvertex
quad1
[]
=
static
const
struct
{
{
0
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
{
640
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
{
0
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
{
640
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xff002b7f
},
};
static
const
struct
tvertex
quad2
[]
=
struct
vec4
position
;
DWORD
diffuse
;
}
quad1
[]
=
{
{
0
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
{
640
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
{
0
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
{
640
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xfff9e814
},
}
;
static
const
struct
tvertex
quad3
[]
=
{
{
0
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
{
{
640
.
0
f
,
0
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
{
{
0
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
{
{
640
.
0
f
,
480
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xff002b7f
},
}
,
quad2
[]
=
{
{
112
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
208
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
112
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
208
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
,
0xffffffff
},
}
;
static
const
struct
tvertex
quad4
[]
=
{
{
0
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{
{
640
.
0
f
,
300
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{
{
0
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{
{
640
.
0
f
,
360
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xfff9e814
},
}
,
quad3
[]
=
{
{
42
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
112
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
42
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{
112
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
,
0xffffffff
},
{{
112
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
208
.
0
f
,
108
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
112
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
208
.
0
f
,
204
.
0
f
,
5
.
0
f
,
1
.
0
f
},
0xffffffff
},
},
quad4
[]
=
{
{{
42
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
112
.
0
f
,
41
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
42
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xffffffff
},
{{
112
.
0
f
,
108
.
0
f
,
10
.
0
f
,
1
.
0
f
},
0xffffffff
},
};
static
const
struct
{
...
...
@@ -12482,26 +12491,31 @@ done:
static
void
depth_bounds_test
(
void
)
{
const
struct
tvertex
quad1
[]
=
static
const
struct
{
{
0
,
0
,
0
.
0
f
,
1
,
0xfff9e814
},
{
640
,
0
,
0
.
0
f
,
1
,
0xfff9e814
},
{
0
,
480
,
1
.
0
f
,
1
,
0xfff9e814
},
{
640
,
480
,
1
.
0
f
,
1
,
0xfff9e814
},
};
const
struct
tvertex
quad2
[]
=
struct
vec4
position
;
DWORD
diffuse
;
}
quad1
[]
=
{
{
0
,
0
,
0
.
6
f
,
1
,
0xff002b7f
},
{
640
,
0
,
0
.
6
f
,
1
,
0xff002b7f
},
{
0
,
480
,
0
.
6
f
,
1
,
0xff002b7f
},
{
640
,
480
,
0
.
6
f
,
1
,
0xff002b7f
},
};
const
struct
tvertex
quad3
[]
=
{{
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{{
640
.
0
f
,
0
.
0
f
,
0
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{{
0
.
0
f
,
480
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xfff9e814
},
{{
640
.
0
f
,
480
.
0
f
,
1
.
0
f
,
1
.
0
f
},
0xfff9e814
},
},
quad2
[]
=
{
{{
0
.
0
f
,
0
.
0
f
,
0
.
6
f
,
1
.
0
f
},
0xff002b7f
},
{{
640
.
0
f
,
0
.
0
f
,
0
.
6
f
,
1
.
0
f
},
0xff002b7f
},
{{
0
.
0
f
,
480
.
0
f
,
0
.
6
f
,
1
.
0
f
},
0xff002b7f
},
{{
640
.
0
f
,
480
.
0
f
,
0
.
6
f
,
1
.
0
f
},
0xff002b7f
},
},
quad3
[]
=
{
{
0
,
100
,
0
.
6
f
,
1
,
0xfff91414
},
{
640
,
100
,
0
.
6
f
,
1
,
0xfff91414
},
{
0
,
160
,
0
.
6
f
,
1
,
0xfff91414
},
{
640
,
160
,
0
.
6
f
,
1
,
0xfff91414
},
{
{
0
.
0
f
,
100
.
0
f
,
0
.
6
f
,
1
.
0
f
}
,
0xfff91414
},
{
{
640
.
0
f
,
100
.
0
f
,
0
.
6
f
,
1
.
0
f
}
,
0xfff91414
},
{
{
0
.
0
f
,
160
.
0
f
,
0
.
6
f
,
1
.
0
f
}
,
0xfff91414
},
{
{
640
.
0
f
,
160
.
0
f
,
0
.
6
f
,
1
.
0
f
}
,
0xfff91414
},
};
union
{
...
...
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