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
8f6cf2d3
Commit
8f6cf2d3
authored
Sep 13, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10/tests: Add some tests for D3D10.1 blend state in effects.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
196aa817
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
2 deletions
+50
-2
effect.c
dlls/d3d10/tests/effect.c
+49
-0
d3d10_1.c
dlls/d3d10_1/tests/d3d10_1.c
+0
-0
reflection.c
dlls/d3dcompiler_43/tests/reflection.c
+1
-2
No files found.
dlls/d3d10/tests/effect.c
View file @
8f6cf2d3
...
...
@@ -9131,6 +9131,54 @@ static void test_effect_fx_4_1(void)
ok
(
!
refcount
,
"Device has %lu references left.
\n
"
,
refcount
);
}
#if 0
BlendState blend_state
{
srcblend = one;
};
#endif
static
DWORD
fx_4_1_test_blend_state
[]
=
{
0x43425844
,
0xe4566da7
,
0x2242fb47
,
0xa5924d09
,
0x8280296f
,
0x00000001
,
0x000001a7
,
0x00000001
,
0x00000024
,
0x30315846
,
0x0000017b
,
0xfeff1011
,
0x00000000
,
0x00000000
,
0x00000001
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000097
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000001
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x6e656c42
,
0x61745364
,
0x04006574
,
0x02000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x00000000
,
0x02000000
,
0x62000000
,
0x646e656c
,
0x6174735f
,
0x01006574
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x01000000
,
0x02000000
,
0x02000000
,
0x2b000000
,
0x0f000000
,
0x00000000
,
0xff000000
,
0x08ffffff
,
0x26000000
,
0x00000000
,
0x01000000
,
0x37000000
,
0x26000000
,
0x01000000
,
0x01000000
,
0x43000000
,
0x26000000
,
0x02000000
,
0x01000000
,
0x4f000000
,
0x26000000
,
0x03000000
,
0x01000000
,
0x5b000000
,
0x26000000
,
0x04000000
,
0x01000000
,
0x67000000
,
0x26000000
,
0x05000000
,
0x01000000
,
0x73000000
,
0x26000000
,
0x06000000
,
0x01000000
,
0x7f000000
,
0x26000000
,
0x07000000
,
0x01000000
,
0x8b000000
,
0x00000000
,
0x00000000
,
};
static
void
test_effect_fx_4_1_blend_state
(
void
)
{
ID3D10Effect
*
effect
=
NULL
;
ID3D10Device
*
device
;
ULONG
refcount
;
HRESULT
hr
;
if
(
!
(
device
=
create_device
()))
{
skip
(
"Failed to create device, skipping tests.
\n
"
);
return
;
}
hr
=
create_effect
(
fx_4_1_test_blend_state
,
0
,
device
,
NULL
,
&
effect
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
if
(
effect
)
effect
->
lpVtbl
->
Release
(
effect
);
refcount
=
ID3D10Device_Release
(
device
);
ok
(
!
refcount
,
"Device has %lu references left.
\n
"
,
refcount
);
}
START_TEST
(
effect
)
{
test_effect_constant_buffer_type
();
...
...
@@ -9158,4 +9206,5 @@ START_TEST(effect)
test_effect_index_expression
();
test_effect_value_expression
();
test_effect_fx_4_1
();
test_effect_fx_4_1_blend_state
();
}
dlls/d3d10_1/tests/d3d10_1.c
View file @
8f6cf2d3
This diff is collapsed.
Click to expand it.
dlls/d3dcompiler_43/tests/reflection.c
View file @
8f6cf2d3
...
...
@@ -28,8 +28,7 @@
#include "wine/test.h"
/* includes for older reflection interfaces */
#include "d3d10.h"
#include "d3d10_1shader.h"
#include "d3d11_1.h"
/*
* This doesn't belong here, but for some functions it is possible to return that value,
...
...
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