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
f494552c
Commit
f494552c
authored
Oct 07, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement rasteriser discard for the Vulkan adapter.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6a6bbf18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
context_vk.c
dlls/wined3d/context_vk.c
+4
-1
No files found.
dlls/wined3d/context_vk.c
View file @
f494552c
...
...
@@ -1761,6 +1761,7 @@ static void wined3d_context_vk_update_rasterisation_state(const struct wined3d_c
if
(
!
state
->
rasterizer_state
)
{
desc
->
depthClampEnable
=
VK_FALSE
;
desc
->
rasterizerDiscardEnable
=
is_rasterization_disabled
(
state
->
shader
[
WINED3D_SHADER_TYPE_GEOMETRY
]);
desc
->
cullMode
=
VK_CULL_MODE_BACK_BIT
;
desc
->
frontFace
=
VK_FRONT_FACE_CLOCKWISE
;
desc
->
depthBiasEnable
=
VK_FALSE
;
...
...
@@ -1773,6 +1774,7 @@ static void wined3d_context_vk_update_rasterisation_state(const struct wined3d_c
r
=
&
state
->
rasterizer_state
->
desc
;
desc
->
depthClampEnable
=
!
r
->
depth_clip
;
desc
->
rasterizerDiscardEnable
=
is_rasterization_disabled
(
state
->
shader
[
WINED3D_SHADER_TYPE_GEOMETRY
]);
desc
->
cullMode
=
vk_cull_mode_from_wined3d
(
r
->
cull_mode
);
desc
->
frontFace
=
r
->
front_ccw
?
VK_FRONT_FACE_COUNTER_CLOCKWISE
:
VK_FRONT_FACE_CLOCKWISE
;
...
...
@@ -2017,7 +2019,8 @@ static bool wined3d_context_vk_update_graphics_pipeline_key(struct wined3d_conte
update
=
true
;
}
if
(
wined3d_context_is_graphics_state_dirty
(
&
context_vk
->
c
,
STATE_RASTERIZER
))
if
(
wined3d_context_is_graphics_state_dirty
(
&
context_vk
->
c
,
STATE_RASTERIZER
)
||
wined3d_context_is_graphics_state_dirty
(
&
context_vk
->
c
,
STATE_SHADER
(
WINED3D_SHADER_TYPE_GEOMETRY
)))
{
wined3d_context_vk_update_rasterisation_state
(
context_vk
,
state
,
key
);
...
...
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