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
69c219dd
Commit
69c219dd
authored
Aug 31, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a draw count of 1 to Vulkan indirect draw commands.
Spotted by Philip Rebohle. This fixes rendering in "Discovery Tour by Assassin's Creed: Ancient Egypt".
parent
3178e909
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
adapter_vk.c
dlls/wined3d/adapter_vk.c
+2
-11
No files found.
dlls/wined3d/adapter_vk.c
View file @
69c219dd
...
...
@@ -1813,23 +1813,14 @@ static void adapter_vk_draw_primitive(struct wined3d_device *device,
if
(
parameters
->
indirect
)
{
struct
wined3d_bo_vk
*
bo
=
wined3d_bo_vk
(
indirect_vk
->
b
.
buffer_object
);
uint32_t
stride
,
size
;
wined3d_context_vk_reference_bo
(
context_vk
,
bo
);
size
=
indirect_vk
->
b
.
resource
.
size
-
parameters
->
u
.
indirect
.
offset
;
if
(
parameters
->
indexed
)
{
stride
=
sizeof
(
VkDrawIndexedIndirectCommand
);
VK_CALL
(
vkCmdDrawIndexedIndirect
(
vk_command_buffer
,
bo
->
vk_buffer
,
bo
->
b
.
buffer_offset
+
parameters
->
u
.
indirect
.
offset
,
size
/
stride
,
stride
));
}
bo
->
b
.
buffer_offset
+
parameters
->
u
.
indirect
.
offset
,
1
,
sizeof
(
VkDrawIndexedIndirectCommand
)));
else
{
stride
=
sizeof
(
VkDrawIndirectCommand
);
VK_CALL
(
vkCmdDrawIndirect
(
vk_command_buffer
,
bo
->
vk_buffer
,
bo
->
b
.
buffer_offset
+
parameters
->
u
.
indirect
.
offset
,
size
/
stride
,
stride
));
}
bo
->
b
.
buffer_offset
+
parameters
->
u
.
indirect
.
offset
,
1
,
sizeof
(
VkDrawIndirectCommand
)));
}
else
{
...
...
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