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
a5b00bd0
Commit
a5b00bd0
authored
Aug 31, 2023
by
Matteo Bruni
Committed by
Alexandre Julliard
Aug 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler/tests: Avoid interpolation filters in test_samplers().
parent
c786ff05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
hlsl_d3d9.c
dlls/d3dcompiler_43/tests/hlsl_d3d9.c
+7
-7
No files found.
dlls/d3dcompiler_43/tests/hlsl_d3d9.c
View file @
a5b00bd0
...
...
@@ -1115,33 +1115,33 @@ static void test_samplers(void)
"sampler s;
\n
"
"float4 main() : COLOR
\n
"
"{
\n
"
" return tex2D(s, float2(0.
5, 0.
5));
\n
"
" return tex2D(s, float2(0.
75, 0.2
5));
\n
"
"}"
,
"SamplerState s;
\n
"
"float4 main() : COLOR
\n
"
"{
\n
"
" return tex2D(s, float2(0.
5, 0.
5));
\n
"
" return tex2D(s, float2(0.
75, 0.2
5));
\n
"
"}"
,
"sampler2D s;
\n
"
"float4 main() : COLOR
\n
"
"{
\n
"
" return tex2D(s, float2(0.
5, 0.
5));
\n
"
" return tex2D(s, float2(0.
75, 0.2
5));
\n
"
"}"
,
"sampler s;
\n
"
"Texture2D t;
\n
"
"float4 main() : COLOR
\n
"
"{
\n
"
" return t.Sample(s, float2(0.
5, 0.
5));
\n
"
" return t.Sample(s, float2(0.
75, 0.2
5));
\n
"
"}"
,
"SamplerState s;
\n
"
"Texture2D t;
\n
"
"float4 main() : COLOR
\n
"
"{
\n
"
" return t.Sample(s, float2(0.
5, 0.
5));
\n
"
" return t.Sample(s, float2(0.
75, 0.2
5));
\n
"
"}"
,
};
...
...
@@ -1161,7 +1161,7 @@ static void test_samplers(void)
hr
=
IDirect3DDevice9_SetTexture
(
test_context
.
device
,
0
,
(
IDirect3DBaseTexture9
*
)
texture
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetSamplerState
(
test_context
.
device
,
0
,
D3DSAMP_MAGFILTER
,
D3DTEXF_
LINEAR
);
hr
=
IDirect3DDevice9_SetSamplerState
(
test_context
.
device
,
0
,
D3DSAMP_MAGFILTER
,
D3DTEXF_
POINT
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
...
...
@@ -1174,7 +1174,7 @@ static void test_samplers(void)
draw_quad
(
test_context
.
device
,
ps_code
);
v
=
get_color_vec4
(
test_context
.
device
,
0
,
0
);
todo_wine
ok
(
compare_vec4
(
&
v
,
0
.
25
f
,
0
.
0
f
,
0
.
25
f
,
0
.
0
f
,
128
),
todo_wine
ok
(
compare_vec4
(
&
v
,
1
.
0
f
,
0
.
0
f
,
1
.
0
f
,
0
.
0
f
,
0
),
"Test %u: Got unexpected value {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
i
,
v
.
x
,
v
.
y
,
v
.
z
,
v
.
w
);
ID3D10Blob_Release
(
ps_code
);
...
...
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