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
40e2784e
Commit
40e2784e
authored
May 13, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
May 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check for a bound compute shader in wined3d_cs_exec_dispatch().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
552b335a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
context_gl.c
dlls/wined3d/context_gl.c
+0
-7
cs.c
dlls/wined3d/cs.c
+4
-1
No files found.
dlls/wined3d/context_gl.c
View file @
40e2784e
...
...
@@ -3901,13 +3901,6 @@ void dispatch_compute(struct wined3d_device *device, const struct wined3d_state
wined3d_context_gl_apply_compute_state
(
context_gl
,
device
,
state
);
if
(
!
state
->
shader
[
WINED3D_SHADER_TYPE_COMPUTE
])
{
context_release
(
&
context_gl
->
c
);
WARN
(
"No compute shader bound, skipping dispatch.
\n
"
);
return
;
}
if
(
parameters
->
indirect
)
{
const
struct
wined3d_indirect_dispatch_parameters
*
indirect
=
&
parameters
->
u
.
indirect
;
...
...
dlls/wined3d/cs.c
View file @
40e2784e
...
...
@@ -785,7 +785,10 @@ static void wined3d_cs_exec_dispatch(struct wined3d_cs *cs, const void *data)
const
struct
wined3d_cs_dispatch
*
op
=
data
;
struct
wined3d_state
*
state
=
&
cs
->
state
;
cs
->
device
->
adapter
->
adapter_ops
->
adapter_dispatch_compute
(
cs
->
device
,
state
,
&
op
->
parameters
);
if
(
!
state
->
shader
[
WINED3D_SHADER_TYPE_COMPUTE
])
WARN
(
"No compute shader bound, skipping dispatch.
\n
"
);
else
cs
->
device
->
adapter
->
adapter_ops
->
adapter_dispatch_compute
(
cs
->
device
,
state
,
&
op
->
parameters
);
if
(
op
->
parameters
.
indirect
)
wined3d_resource_release
(
&
op
->
parameters
.
u
.
indirect
.
buffer
->
resource
);
...
...
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