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
f75d1b0c
Commit
f75d1b0c
authored
Feb 13, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Feb 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d/tests: Geforce8+ GPUs abs() table fog.
parent
91c7a84a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
27 deletions
+47
-27
visual.c
dlls/d3d8/tests/visual.c
+14
-9
visual.c
dlls/d3d9/tests/visual.c
+14
-9
ddraw7.c
dlls/ddraw/tests/ddraw7.c
+19
-9
No files found.
dlls/d3d8/tests/visual.c
View file @
f75d1b0c
...
...
@@ -5458,26 +5458,30 @@ static void test_negative_fixedfunction_fog(void)
DWORD
d
;
}
start
,
end
;
D3DFOGMODE
vfog
,
tfog
;
DWORD
color
,
color_broken
;
DWORD
color
,
color_broken
,
color_broken2
;
}
tests
[]
=
{
/* Run the XYZRHW tests first. Depth clamping is broken after RHW draws on the testbot. */
/* Run the XYZRHW tests first. Depth clamping is broken after RHW draws on the testbot.
*
* Geforce8+ GPUs on Windows abs() table fog, everything else does not. */
{
D3DFVF_XYZRHW
,
tquad
,
sizeof
(
*
tquad
),
&
identity
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00ff0000
,
0x00
ff0
000
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00ff0000
,
0x00
808000
,
0x00808
000
},
/* r200 GPUs and presumably all d3d8 and older HW clamp the fog
* parameters to 0.0 and 1.0 in the table fog case. */
{
D3DFVF_XYZRHW
,
tquad
,
sizeof
(
*
tquad
),
&
identity
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00808000
,
0x00ff0000
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00808000
,
0x00ff0000
,
0x0000ff00
},
/* test_fog_interpolation shows that vertex fog evaluates the fog
* equation in the vertex pipeline. Start = -1.0 && end = 0.0 shows
* that the abs happens before the fog equation is evaluated. */
* that the abs happens before the fog equation is evaluated.
*
* Vertex fog abs() behavior is the same on all GPUs. */
{
D3DFVF_XYZ
,
quad
,
sizeof
(
*
quad
),
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x00808000
,
0x00808000
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x00808000
,
0x00808000
,
0x00808000
},
{
D3DFVF_XYZ
,
quad
,
sizeof
(
*
quad
),
&
zero
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x0000ff00
,
0x0000ff00
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
},
{
D3DFVF_XYZ
,
quad
,
sizeof
(
*
quad
),
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_EXP
,
D3DFOG_NONE
,
0x009b6400
,
0x009b6400
},
D3DFOG_EXP
,
D3DFOG_NONE
,
0x009b6400
,
0x009b6400
,
0x009b6400
},
};
D3DCAPS8
caps
;
...
...
@@ -5539,7 +5543,8 @@ static void test_negative_fixedfunction_fog(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
color
=
getPixelColor
(
device
,
320
,
240
);
ok
(
color_match
(
color
,
tests
[
i
].
color
,
2
)
||
broken
(
color_match
(
color
,
tests
[
i
].
color_broken
,
2
)),
ok
(
color_match
(
color
,
tests
[
i
].
color
,
2
)
||
broken
(
color_match
(
color
,
tests
[
i
].
color_broken
,
2
))
||
broken
(
color_match
(
color
,
tests
[
i
].
color_broken2
,
2
)),
"Got unexpected color 0x%08x, case %u.
\n
"
,
color
,
i
);
hr
=
IDirect3DDevice8_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to present, hr %#x.
\n
"
,
hr
);
...
...
dlls/d3d9/tests/visual.c
View file @
f75d1b0c
...
...
@@ -17057,26 +17057,30 @@ static void test_negative_fixedfunction_fog(void)
DWORD
d
;
}
start
,
end
;
D3DFOGMODE
vfog
,
tfog
;
DWORD
color
,
color_broken
;
DWORD
color
,
color_broken
,
color_broken2
;
}
tests
[]
=
{
/* Run the XYZRHW tests first. Depth clamping is broken after RHW draws on the testbot. */
/* Run the XYZRHW tests first. Depth clamping is broken after RHW draws on the testbot.
*
* Geforce8+ GPUs on Windows abs() table fog, everything else does not. */
{
D3DFVF_XYZRHW
,
tquad
,
sizeof
(
*
tquad
),
&
identity
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00ff0000
,
0x00
ff0
000
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00ff0000
,
0x00
808000
,
0x00808
000
},
/* r200 GPUs and presumably all d3d8 and older HW clamp the fog
* parameters to 0.0 and 1.0 in the table fog case. */
{
D3DFVF_XYZRHW
,
tquad
,
sizeof
(
*
tquad
),
&
identity
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00808000
,
0x00ff0000
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00808000
,
0x00ff0000
,
0x0000ff00
},
/* test_fog_interpolation shows that vertex fog evaluates the fog
* equation in the vertex pipeline. Start = -1.0 && end = 0.0 shows
* that the abs happens before the fog equation is evaluated. */
* that the abs happens before the fog equation is evaluated.
*
* Vertex fog abs() behavior is the same on all GPUs. */
{
D3DFVF_XYZ
,
quad
,
sizeof
(
*
quad
),
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x00808000
,
0x00808000
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x00808000
,
0x00808000
,
0x00808000
},
{
D3DFVF_XYZ
,
quad
,
sizeof
(
*
quad
),
&
zero
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x0000ff00
,
0x0000ff00
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
},
{
D3DFVF_XYZ
,
quad
,
sizeof
(
*
quad
),
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_EXP
,
D3DFOG_NONE
,
0x009b6400
,
0x009b6400
},
D3DFOG_EXP
,
D3DFOG_NONE
,
0x009b6400
,
0x009b6400
,
0x009b6400
},
};
D3DCAPS9
caps
;
...
...
@@ -17138,7 +17142,8 @@ static void test_negative_fixedfunction_fog(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
color
=
getPixelColor
(
device
,
320
,
240
);
ok
(
color_match
(
color
,
tests
[
i
].
color
,
2
)
||
broken
(
color_match
(
color
,
tests
[
i
].
color_broken
,
2
)),
ok
(
color_match
(
color
,
tests
[
i
].
color
,
2
)
||
broken
(
color_match
(
color
,
tests
[
i
].
color_broken
,
2
))
||
broken
(
color_match
(
color
,
tests
[
i
].
color_broken2
,
2
)),
"Got unexpected color 0x%08x, case %u.
\n
"
,
color
,
i
);
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to present, hr %#x.
\n
"
,
hr
);
...
...
dlls/ddraw/tests/ddraw7.c
View file @
f75d1b0c
...
...
@@ -8097,21 +8097,30 @@ static void test_negative_fixedfunction_fog(void)
DWORD
d
;
}
start
,
end
;
D3DFOGMODE
vfog
,
tfog
;
DWORD
color
,
color_broken
;
DWORD
color
,
color_broken
,
color_broken2
;
}
tests
[]
=
{
/* Run the XYZRHW tests first. Depth clamping is broken after RHW draws on the testbot. */
{
D3DFVF_XYZRHW
,
tquad
,
&
identity
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00ff0000
,
0x00ff0000
},
/* Run the XYZRHW tests first. Depth clamping is broken after RHW draws on the testbot.
*
* Geforce8+ GPUs on Windows abs() table fog, everything else does not. */
{
D3DFVF_XYZRHW
,
tquad
,
&
identity
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00ff0000
,
0x00808000
,
0x00808000
},
/* r200 GPUs and presumably all d3d8 and older HW clamp the fog
* parameters to 0.0 and 1.0 in the table fog case. */
{
D3DFVF_XYZRHW
,
tquad
,
&
identity
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00808000
,
0x00ff0000
},
{
D3DFVF_XYZRHW
,
tquad
,
&
identity
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_NONE
,
D3DFOG_LINEAR
,
0x00808000
,
0x00ff0000
,
0x0000ff00
},
/* test_fog_interpolation shows that vertex fog evaluates the fog
* equation in the vertex pipeline. Start = -1.0 && end = 0.0 shows
* that the abs happens before the fog equation is evaluated. */
{
D3DFVF_XYZ
,
quad
,
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x00808000
,
0x00808000
},
{
D3DFVF_XYZ
,
quad
,
&
zero
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x0000ff00
,
0x0000ff00
},
{
D3DFVF_XYZ
,
quad
,
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_EXP
,
D3DFOG_NONE
,
0x009b6400
,
0x009b6400
},
* that the abs happens before the fog equation is evaluated.
*
* Vertex fog abs() behavior is the same on all GPUs. */
{
D3DFVF_XYZ
,
quad
,
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x00808000
,
0x00808000
,
0x00808000
},
{
D3DFVF_XYZ
,
quad
,
&
zero
,
{
-
1
.
0
f
},
{
0
.
0
f
},
D3DFOG_LINEAR
,
D3DFOG_NONE
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
},
{
D3DFVF_XYZ
,
quad
,
&
zero
,
{
0
.
0
f
},
{
1
.
0
f
},
D3DFOG_EXP
,
D3DFOG_NONE
,
0x009b6400
,
0x009b6400
,
0x009b6400
},
};
D3DDEVICEDESC7
caps
;
...
...
@@ -8170,7 +8179,8 @@ static void test_negative_fixedfunction_fog(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to end scene, hr %#x.
\n
"
,
hr
);
color
=
get_surface_color
(
rt
,
0
,
240
);
ok
(
compare_color
(
color
,
tests
[
i
].
color
,
2
)
||
broken
(
compare_color
(
color
,
tests
[
i
].
color_broken
,
2
)),
ok
(
compare_color
(
color
,
tests
[
i
].
color
,
2
)
||
broken
(
compare_color
(
color
,
tests
[
i
].
color_broken
,
2
))
||
broken
(
compare_color
(
color
,
tests
[
i
].
color_broken2
,
2
)),
"Got unexpected color 0x%08x, case %u.
\n
"
,
color
,
i
);
}
...
...
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