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
d6c6fc45
Commit
d6c6fc45
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: Initialize MinPrecision when it exists.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a02667be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
reflection.c
dlls/d3dcompiler_43/reflection.c
+13
-9
No files found.
dlls/d3dcompiler_43/reflection.c
View file @
d6c6fc45
...
@@ -475,17 +475,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetResourceBindin
...
@@ -475,17 +475,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetResourceBindin
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetInputParameterDesc
(
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetInputParameterDesc
(
ID3D11ShaderReflection
*
iface
,
UINT
index
,
D3D11_SIGNATURE_PARAMETER_DESC
*
desc
)
ID3D11ShaderReflection
*
iface
,
UINT
index
,
D3D11_SIGNATURE_PARAMETER_DESC
*
desc
)
{
{
struct
d3dcompiler_shader_reflection
*
This
=
impl_from_ID3D11ShaderReflection
(
iface
);
struct
d3dcompiler_shader_reflection
*
reflection
=
impl_from_ID3D11ShaderReflection
(
iface
);
TRACE
(
"iface %p, index %u, desc %p
\n
"
,
iface
,
index
,
desc
);
TRACE
(
"iface %p, index %u, desc %p
\n
"
,
iface
,
index
,
desc
);
if
(
!
desc
||
!
This
->
isgn
||
index
>=
This
->
isgn
->
element_count
)
if
(
!
desc
||
!
reflection
->
isgn
||
index
>=
reflection
->
isgn
->
element_count
)
{
{
WARN
(
"Invalid argument specified
\n
"
);
WARN
(
"Invalid argument specified
\n
"
);
return
E_INVALIDARG
;
return
E_INVALIDARG
;
}
}
*
desc
=
This
->
isgn
->
elements
[
index
];
*
desc
=
reflection
->
isgn
->
elements
[
index
];
return
S_OK
;
return
S_OK
;
}
}
...
@@ -493,17 +493,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetInputParameter
...
@@ -493,17 +493,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetInputParameter
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetOutputParameterDesc
(
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetOutputParameterDesc
(
ID3D11ShaderReflection
*
iface
,
UINT
index
,
D3D11_SIGNATURE_PARAMETER_DESC
*
desc
)
ID3D11ShaderReflection
*
iface
,
UINT
index
,
D3D11_SIGNATURE_PARAMETER_DESC
*
desc
)
{
{
struct
d3dcompiler_shader_reflection
*
This
=
impl_from_ID3D11ShaderReflection
(
iface
);
struct
d3dcompiler_shader_reflection
*
reflection
=
impl_from_ID3D11ShaderReflection
(
iface
);
TRACE
(
"iface %p, index %u, desc %p
\n
"
,
iface
,
index
,
desc
);
TRACE
(
"iface %p, index %u, desc %p
\n
"
,
iface
,
index
,
desc
);
if
(
!
desc
||
!
This
->
osgn
||
index
>=
This
->
osgn
->
element_count
)
if
(
!
desc
||
!
reflection
->
osgn
||
index
>=
reflection
->
osgn
->
element_count
)
{
{
WARN
(
"Invalid argument specified
\n
"
);
WARN
(
"Invalid argument specified
\n
"
);
return
E_INVALIDARG
;
return
E_INVALIDARG
;
}
}
*
desc
=
This
->
osgn
->
elements
[
index
];
*
desc
=
reflection
->
osgn
->
elements
[
index
];
return
S_OK
;
return
S_OK
;
}
}
...
@@ -511,17 +511,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetOutputParamete
...
@@ -511,17 +511,17 @@ static HRESULT STDMETHODCALLTYPE d3dcompiler_shader_reflection_GetOutputParamete
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetPatchConstantParameterDesc
(
static
HRESULT
STDMETHODCALLTYPE
d3dcompiler_shader_reflection_GetPatchConstantParameterDesc
(
ID3D11ShaderReflection
*
iface
,
UINT
index
,
D3D11_SIGNATURE_PARAMETER_DESC
*
desc
)
ID3D11ShaderReflection
*
iface
,
UINT
index
,
D3D11_SIGNATURE_PARAMETER_DESC
*
desc
)
{
{
struct
d3dcompiler_shader_reflection
*
This
=
impl_from_ID3D11ShaderReflection
(
iface
);
struct
d3dcompiler_shader_reflection
*
reflection
=
impl_from_ID3D11ShaderReflection
(
iface
);
TRACE
(
"iface %p, index %u, desc %p
\n
"
,
iface
,
index
,
desc
);
TRACE
(
"iface %p, index %u, desc %p
\n
"
,
iface
,
index
,
desc
);
if
(
!
desc
||
!
This
->
pcsg
||
index
>=
This
->
pcsg
->
element_count
)
if
(
!
desc
||
!
reflection
->
pcsg
||
index
>=
reflection
->
pcsg
->
element_count
)
{
{
WARN
(
"Invalid argument specified
\n
"
);
WARN
(
"Invalid argument specified
\n
"
);
return
E_INVALIDARG
;
return
E_INVALIDARG
;
}
}
*
desc
=
This
->
pcsg
->
elements
[
index
];
*
desc
=
reflection
->
pcsg
->
elements
[
index
];
return
S_OK
;
return
S_OK
;
}
}
...
@@ -1621,6 +1621,10 @@ static HRESULT d3dcompiler_parse_signature(struct d3dcompiler_shader_signature *
...
@@ -1621,6 +1621,10 @@ static HRESULT d3dcompiler_parse_signature(struct d3dcompiler_shader_signature *
UINT
name_offset
;
UINT
name_offset
;
DWORD
mask
;
DWORD
mask
;
#if D3D_COMPILER_VERSION >= 46
/* FIXME */
d
[
i
].
MinPrecision
=
D3D_MIN_PRECISION_DEFAULT
;
#endif
if
(
element_size
==
D3DCOMPILER_SIGNATURE_ELEMENT_SIZE7
)
if
(
element_size
==
D3DCOMPILER_SIGNATURE_ELEMENT_SIZE7
)
{
{
read_dword
(
&
ptr
,
&
d
[
i
].
Stream
);
read_dword
(
&
ptr
,
&
d
[
i
].
Stream
);
...
...
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