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
b003cefe
Commit
b003cefe
authored
Mar 12, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: oFog is not initialized on r200.
parent
c5fdc167
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
32 deletions
+33
-32
visual.c
dlls/d3d8/tests/visual.c
+33
-32
No files found.
dlls/d3d8/tests/visual.c
View file @
b003cefe
...
@@ -774,122 +774,123 @@ static void fog_with_shader_test(void)
...
@@ -774,122 +774,123 @@ static void fog_with_shader_test(void)
int
pshader
;
int
pshader
;
D3DFOGMODE
vfog
;
D3DFOGMODE
vfog
;
D3DFOGMODE
tfog
;
D3DFOGMODE
tfog
;
BOOL
uninitialized_reg
;
unsigned
int
color
[
11
];
unsigned
int
color
[
11
];
}
}
test_data
[]
=
test_data
[]
=
{
{
/* Only pixel shader */
/* Only pixel shader */
{
0
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
0
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
{
0
,
1
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
{
0
,
1
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
{
0
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
0
,
1
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
{
0
,
1
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
/* Vertex shader */
/* Vertex shader */
{
1
,
0
,
D3DFOG_NONE
,
D3DFOG_NONE
,
{
1
,
0
,
D3DFOG_NONE
,
D3DFOG_NONE
,
TRUE
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
1
,
0
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
{
1
,
0
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
{
1
,
0
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
0
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
{
1
,
0
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
/* Vertex shader and pixel shader */
/* Vertex shader and pixel shader */
/* The next 4 tests would read the fog coord output, but it isn't available.
/* The next 4 tests would read the fog coord output, but it isn't available.
* The result is a fully fogged quad, no matter what the Z coord is. */
* The result is a fully fogged quad, no matter what the Z coord is. */
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_NONE
,
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_NONE
,
TRUE
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
{
1
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
TRUE
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
D3DFOG_EXP
,
D3DFOG_NONE
,
{
1
,
1
,
D3DFOG_EXP
,
D3DFOG_NONE
,
TRUE
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
{
1
,
1
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
TRUE
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
{
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
,
0x0000ff00
}},
/* These use the Z coordinate with linear table fog */
/* These use the Z coordinate with linear table fog */
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
{
1
,
1
,
D3DFOG_EXP
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
{
1
,
1
,
D3DFOG_EXP2
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
{
1
,
1
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
{
1
,
1
,
D3DFOG_LINEAR
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
/* Non-linear table fog without fog coord */
/* Non-linear table fog without fog coord */
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP
,
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP
,
FALSE
,
{
0x00ff0000
,
0x00e71800
,
0x00d12e00
,
0x00bd4200
,
0x00ab5400
,
0x009b6400
,
{
0x00ff0000
,
0x00e71800
,
0x00d12e00
,
0x00bd4200
,
0x00ab5400
,
0x009b6400
,
0x008d7200
,
0x007f8000
,
0x00738c00
,
0x00689700
,
0x005ea100
}},
0x008d7200
,
0x007f8000
,
0x00738c00
,
0x00689700
,
0x005ea100
}},
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP2
,
{
1
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP2
,
FALSE
,
{
0x00fd0200
,
0x00f50200
,
0x00f50a00
,
0x00e91600
,
0x00d92600
,
0x00c73800
,
{
0x00fd0200
,
0x00f50200
,
0x00f50a00
,
0x00e91600
,
0x00d92600
,
0x00c73800
,
0x00b24d00
,
0x009c6300
,
0x00867900
,
0x00728d00
,
0x005ea100
}},
0x00b24d00
,
0x009c6300
,
0x00867900
,
0x00728d00
,
0x005ea100
}},
/* These tests fail on older Nvidia drivers */
/* These tests fail on older Nvidia drivers */
/* Foggy vertex shader */
/* Foggy vertex shader */
{
2
,
0
,
D3DFOG_NONE
,
D3DFOG_NONE
,
{
2
,
0
,
D3DFOG_NONE
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
0
,
D3DFOG_EXP
,
D3DFOG_NONE
,
{
2
,
0
,
D3DFOG_EXP
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
0
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
{
2
,
0
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
0
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
{
2
,
0
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
/* Foggy vertex shader and pixel shader. First 4 tests with vertex fog,
/* Foggy vertex shader and pixel shader. First 4 tests with vertex fog,
* all using the fixed fog-coord linear fog */
* all using the fixed fog-coord linear fog */
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_NONE
,
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
1
,
D3DFOG_EXP
,
D3DFOG_NONE
,
{
2
,
1
,
D3DFOG_EXP
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
1
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
{
2
,
1
,
D3DFOG_EXP2
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
{
2
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
{
2
,
1
,
D3DFOG_LINEAR
,
D3DFOG_NONE
,
FALSE
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00fe0100
,
0x00de2100
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x003fc000
,
0x001fe000
,
0x0000ff00
,
0x0000ff00
}},
/* These use table fog. Here the shader-provided fog coordinate is
/* These use table fog. Here the shader-provided fog coordinate is
* ignored and the z coordinate used instead */
* ignored and the z coordinate used instead */
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP
,
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP
,
FALSE
,
{
0x00ff0000
,
0x00e71800
,
0x00d12e00
,
0x00bd4200
,
0x00ab5400
,
0x009b6400
,
{
0x00ff0000
,
0x00e71800
,
0x00d12e00
,
0x00bd4200
,
0x00ab5400
,
0x009b6400
,
0x008d7200
,
0x007f8000
,
0x00738c00
,
0x00689700
,
0x005ea100
}},
0x008d7200
,
0x007f8000
,
0x00738c00
,
0x00689700
,
0x005ea100
}},
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP2
,
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_EXP2
,
FALSE
,
{
0x00fd0200
,
0x00f50200
,
0x00f50a00
,
0x00e91600
,
0x00d92600
,
0x00c73800
,
{
0x00fd0200
,
0x00f50200
,
0x00f50a00
,
0x00e91600
,
0x00d92600
,
0x00c73800
,
0x00b24d00
,
0x009c6300
,
0x00867900
,
0x00728d00
,
0x005ea100
}},
0x00b24d00
,
0x009c6300
,
0x00867900
,
0x00728d00
,
0x005ea100
}},
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
{
2
,
1
,
D3DFOG_NONE
,
D3DFOG_LINEAR
,
FALSE
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
{
0x00ff0000
,
0x00ff0000
,
0x00df2000
,
0x00bf4000
,
0x009f6000
,
0x007f8000
,
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
0x005fa000
,
0x0040bf00
,
0x0020df00
,
0x0000ff00
,
0x0000ff00
}},
};
};
...
@@ -996,7 +997,7 @@ static void fog_with_shader_test(void)
...
@@ -996,7 +997,7 @@ static void fog_with_shader_test(void)
/* As the red and green component are the result of blending use 5% tolerance on the expected value */
/* As the red and green component are the result of blending use 5% tolerance on the expected value */
color
=
getPixelColor
(
device
,
128
,
240
);
color
=
getPixelColor
(
device
,
128
,
240
);
ok
(
color_match
(
color
,
test_data
[
i
].
color
[
j
],
13
),
ok
(
color_match
(
color
,
test_data
[
i
].
color
[
j
],
13
)
||
broken
(
test_data
[
i
].
uninitialized_reg
)
,
"fog vs%i ps%i fvm%i ftm%i %d: got color %08x, expected %08x +-5%%
\n
"
,
"fog vs%i ps%i fvm%i ftm%i %d: got color %08x, expected %08x +-5%%
\n
"
,
test_data
[
i
].
vshader
,
test_data
[
i
].
pshader
,
test_data
[
i
].
vshader
,
test_data
[
i
].
pshader
,
test_data
[
i
].
vfog
,
test_data
[
i
].
tfog
,
j
,
color
,
test_data
[
i
].
color
[
j
]);
test_data
[
i
].
vfog
,
test_data
[
i
].
tfog
,
j
,
color
,
test_data
[
i
].
color
[
j
]);
...
...
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