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
362da026
Commit
362da026
authored
Nov 01, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler_43/tests: Calculate the probe count.
parent
04632c06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
hlsl.c
dlls/d3dcompiler_43/tests/hlsl.c
+13
-13
No files found.
dlls/d3dcompiler_43/tests/hlsl.c
View file @
362da026
...
...
@@ -295,7 +295,7 @@ static void compute_shader_probe9(IDirect3DDevice9 *device, IDirect3DVertexShade
static
void
test_swizzle
(
IDirect3DDevice9
*
device
,
IDirect3DVertexBuffer9
*
quad_geometry
,
IDirect3DVertexShader9
*
vshader_passthru
)
{
static
const
struct
hlsl_probe_info
swizzle_test_
probes
[]
=
static
const
struct
hlsl_probe_info
probes
[]
=
{
{
0
,
0
,
{
0
.
0101
f
,
0
.
0303
f
,
0
.
0202
f
,
0
.
0404
f
},
0
.
0001
f
,
"swizzle_test failed"
}
};
...
...
@@ -318,8 +318,8 @@ static void test_swizzle(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *quad_
{
set_float4_d3d9
(
device
,
constants
,
"color"
,
0
.
0303
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0202
f
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
swizzle_test_probes
,
1
,
1
,
1
,
__LINE__
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
probes
,
sizeof
(
probes
)
/
sizeof
(
*
probes
)
,
1
,
1
,
__LINE__
);
IUnknown_Release
(
constants
);
IUnknown_Release
(
pshader
);
...
...
@@ -332,7 +332,7 @@ static void test_math(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *quad_geo
/* Tests order of operations */
static
const
float
u
=
2
.
5
f
,
v
=
0
.
3
f
,
w
=
0
.
2
f
,
x
=
0
.
7
f
,
y
=
0
.
1
f
,
z
=
1
.
5
f
;
static
const
struct
hlsl_probe_info
order_of_operations_
probes
[]
=
static
const
struct
hlsl_probe_info
probes
[]
=
{
{
0
,
0
,
{
-
12
.
4300
f
,
9
.
8333
f
,
1
.
6000
f
,
34
.
9999
f
},
0
.
0001
f
,
"order of operations test failed"
}
...
...
@@ -362,7 +362,7 @@ static void test_math(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *quad_geo
ID3DXConstantTable_SetFloat
(
constants
,
device
,
"$z"
,
z
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
order_of_operations_probes
,
1
,
1
,
1
,
__LINE__
);
probes
,
sizeof
(
probes
)
/
sizeof
(
*
probes
)
,
1
,
1
,
__LINE__
);
IUnknown_Release
(
constants
);
IUnknown_Release
(
pshader
);
...
...
@@ -415,8 +415,8 @@ static void test_conditionals(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *
pshader
=
compile_pixel_shader9
(
device
,
if_greater_shader
,
"ps_2_0"
,
&
constants
);
if
(
pshader
!=
NULL
)
{
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
if_greater_probes
,
6
,
32
,
1
,
__LINE__
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
if_greater_probes
,
sizeof
(
if_greater_probes
)
/
sizeof
(
*
if_greater_probes
)
,
32
,
1
,
__LINE__
);
IUnknown_Release
(
constants
);
IUnknown_Release
(
pshader
);
...
...
@@ -425,8 +425,8 @@ static void test_conditionals(IDirect3DDevice9 *device, IDirect3DVertexBuffer9 *
pshader
=
compile_pixel_shader9
(
device
,
ternary_operator_shader
,
"ps_2_0"
,
&
constants
);
if
(
pshader
!=
NULL
)
{
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
ternary_operator_probes
,
7
,
8
,
1
,
__LINE__
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
ternary_operator_probes
,
sizeof
(
ternary_operator_probes
)
/
sizeof
(
*
ternary_operator_probes
)
,
8
,
1
,
__LINE__
);
IUnknown_Release
(
constants
);
IUnknown_Release
(
pshader
);
...
...
@@ -474,8 +474,8 @@ static void test_float_vectors(IDirect3DDevice9 *device, IDirect3DVertexBuffer9
pshader
=
compile_pixel_shader9
(
device
,
vec4_indexing_test1_shader
,
"ps_2_0"
,
&
constants
);
if
(
pshader
!=
NULL
)
{
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
vec4_indexing_test1_probes
,
1
,
1
,
1
,
__LINE__
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
vec4_indexing_test1_probes
,
sizeof
(
vec4_indexing_test1_probes
)
/
sizeof
(
*
vec4_indexing_test1_probes
)
,
1
,
1
,
__LINE__
);
IUnknown_Release
(
constants
);
IUnknown_Release
(
pshader
);
...
...
@@ -486,8 +486,8 @@ static void test_float_vectors(IDirect3DDevice9 *device, IDirect3DVertexBuffer9
{
ID3DXConstantTable_SetInt
(
constants
,
device
,
"i"
,
2
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
vec4_indexing_test2_probes
,
1
,
32
,
1
,
__LINE__
);
compute_shader_probe9
(
device
,
vshader_passthru
,
pshader
,
quad_geometry
,
vec4_indexing_test2_probes
,
sizeof
(
vec4_indexing_test2_probes
)
/
sizeof
(
*
vec4_indexing_test2_probes
)
,
32
,
1
,
__LINE__
);
IUnknown_Release
(
constants
);
IUnknown_Release
(
pshader
);
...
...
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