Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3ab6b829
Commit
3ab6b829
authored
Aug 08, 2019
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Setup and tear down the shader backend for the Vulkan adapter.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f654f983
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
adapter_vk.c
dlls/wined3d/adapter_vk.c
+17
-0
No files found.
dlls/wined3d/adapter_vk.c
View file @
3ab6b829
...
...
@@ -413,9 +413,18 @@ static HRESULT adapter_vk_init_3d(struct wined3d_device *device)
return
hr
;
}
if
(
FAILED
(
hr
=
device
->
shader_backend
->
shader_alloc_private
(
device
,
device
->
adapter
->
vertex_pipe
,
device
->
adapter
->
fragment_pipe
)))
{
ERR
(
"Failed to allocate shader private data, hr %#x.
\n
"
,
hr
);
wined3d_context_vk_cleanup
(
context_vk
);
return
hr
;
}
if
(
!
device_context_add
(
device
,
&
context_vk
->
c
))
{
ERR
(
"Failed to add the newly created context to the context list.
\n
"
);
device
->
shader_backend
->
shader_free_private
(
device
,
NULL
);
wined3d_context_vk_cleanup
(
context_vk
);
return
E_FAIL
;
}
...
...
@@ -426,6 +435,7 @@ static HRESULT adapter_vk_init_3d(struct wined3d_device *device)
{
ERR
(
"Failed to create CPU blitter.
\n
"
);
device_context_remove
(
device
,
&
context_vk
->
c
);
device
->
shader_backend
->
shader_free_private
(
device
,
NULL
);
wined3d_context_vk_cleanup
(
context_vk
);
return
E_FAIL
;
}
...
...
@@ -436,13 +446,20 @@ static HRESULT adapter_vk_init_3d(struct wined3d_device *device)
static
void
adapter_vk_uninit_3d
(
struct
wined3d_device
*
device
)
{
struct
wined3d_context_vk
*
context_vk
;
struct
wined3d_shader
*
shader
;
TRACE
(
"device %p.
\n
"
,
device
);
LIST_FOR_EACH_ENTRY
(
shader
,
&
device
->
shaders
,
struct
wined3d_shader
,
shader_list_entry
)
{
device
->
shader_backend
->
shader_destroy
(
shader
);
}
device
->
blitter
->
ops
->
blitter_destroy
(
device
->
blitter
,
NULL
);
context_vk
=
&
wined3d_device_vk
(
device
)
->
context_vk
;
device_context_remove
(
device
,
&
context_vk
->
c
);
device
->
shader_backend
->
shader_free_private
(
device
,
NULL
);
wined3d_context_vk_cleanup
(
context_vk
);
}
...
...
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