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
7d7d1662
Commit
7d7d1662
authored
May 27, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Always initialize out shader pointer in CreateComputeShader().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
72046ad7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/d3d11/device.c
+2
-0
d3d11.c
dlls/d3d11/tests/d3d11.c
+7
-0
No files found.
dlls/d3d11/device.c
View file @
7d7d1662
...
...
@@ -3615,6 +3615,8 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateComputeShader(ID3D11Device2
TRACE
(
"iface %p, byte_code %p, byte_code_length %Iu, class_linkage %p, shader %p.
\n
"
,
iface
,
byte_code
,
byte_code_length
,
class_linkage
,
shader
);
*
shader
=
NULL
;
if
(
class_linkage
)
FIXME
(
"Class linkage is not implemented yet.
\n
"
);
...
...
dlls/d3d11/tests/d3d11.c
View file @
7d7d1662
...
...
@@ -4823,6 +4823,7 @@ static void test_create_shader(const D3D_FEATURE_LEVEL feature_level)
struct
device_desc
device_desc
;
ID3D11Device
*
device
,
*
tmp
;
ID3D11GeometryShader
*
gs
;
ID3D11ComputeShader
*
cs
;
ID3D11VertexShader
*
vs
;
ID3D11DomainShader
*
ds
;
ID3D11PixelShader
*
ps
;
...
...
@@ -5014,6 +5015,12 @@ static void test_create_shader(const D3D_FEATURE_LEVEL feature_level)
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
ds
,
"Unexpected pointer %p.
\n
"
,
ds
);
/* Compute shader */
ds
=
(
void
*
)
0xdeadbeef
;
hr
=
ID3D11Device_CreateComputeShader
(
device
,
gs_4_0
,
sizeof
(
gs_4_0
),
NULL
,
&
cs
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
!
cs
,
"Unexpected pointer %p.
\n
"
,
cs
);
refcount
=
ID3D11Device_Release
(
device
);
ok
(
!
refcount
,
"Device has %lu references left.
\n
"
,
refcount
);
}
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