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
27bf34bb
Commit
27bf34bb
authored
Nov 12, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Nov 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler/tests: Add a small test for MinPrecision.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f14962e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
reflection.c
dlls/d3dcompiler_43/tests/reflection.c
+31
-6
No files found.
dlls/d3dcompiler_43/tests/reflection.c
View file @
27bf34bb
...
...
@@ -296,16 +296,31 @@ static const D3D11_SIGNATURE_PARAMETER_DESC test_reflection_desc_vs_resultout[]
{
"SV_InstanceID"
,
0
,
6
,
D3D_NAME_UNDEFINED
,
D3D_REGISTER_COMPONENT_UINT32
,
0x1
,
0xe
,
0
},
};
struct
D3D11_SIGNATURE_PARAMETER_DESC_46
{
const
char
*
SemanticName
;
UINT
SemanticIndex
;
UINT
Register
;
D3D_NAME
SystemValueType
;
D3D_REGISTER_COMPONENT_TYPE
ComponentType
;
BYTE
Mask
;
BYTE
ReadWriteMask
;
UINT
Stream
;
D3D_MIN_PRECISION
MinPrecision
;
};
static
void
test_reflection_desc_vs
(
void
)
{
HRESULT
hr
;
ULONG
count
;
ID3D11ShaderReflection
*
ref11
;
D3D11_SHADER_DESC
sdesc11
=
{
0
};
D3D11_SIGNATURE_PARAMETER_DESC
desc
=
{
0
};
struct
D3D11_SIGNATURE_PARAMETER_DESC_46
desc_46
=
{
0
};
const
D3D11_SIGNATURE_PARAMETER_DESC
*
pdesc
;
UINT
ret
;
D3D11_SIGNATURE_PARAMETER_DESC
desc
=
{
0
};
D3D_MIN_PRECISION
expected_min_prec
;
D3D11_SHADER_DESC
sdesc11
=
{
0
};
ID3D11ShaderReflection
*
ref11
;
unsigned
int
i
;
ULONG
count
;
HRESULT
hr
;
UINT
ret
;
hr
=
pD3DReflect
(
test_reflection_desc_vs_blob
,
test_reflection_desc_vs_blob
[
6
],
&
IID_ID3D11ShaderReflection
,
(
void
**
)
&
ref11
);
ok
(
hr
==
S_OK
,
"D3DReflect failed %x
\n
"
,
hr
);
...
...
@@ -368,6 +383,16 @@ static void test_reflection_desc_vs(void)
ok
(
ret
==
0
,
"GetMovcInstructionCount failed, got %u, expected %u
\n
"
,
ret
,
0
);
/* GetIn/OutputParameterDesc */
desc_46
.
MinPrecision
=
~
0u
;
hr
=
ref11
->
lpVtbl
->
GetInputParameterDesc
(
ref11
,
0
,
(
D3D11_SIGNATURE_PARAMETER_DESC
*
)
&
desc_46
);
#if D3D_COMPILER_VERSION >= 46
expected_min_prec
=
0
;
#else
expected_min_prec
=
~
0u
;
#endif
ok
(
desc_46
.
MinPrecision
==
expected_min_prec
,
"Got MinPrecision %#x, expected %#x.
\n
"
,
desc_46
.
MinPrecision
,
expected_min_prec
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
test_reflection_desc_vs_resultin
);
++
i
)
{
pdesc
=
&
test_reflection_desc_vs_resultin
[
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