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
ce59348c
Commit
ce59348c
authored
Nov 08, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Create the XFB counter BO in wined3d_context_vk_bind_stream_output_buffers().
parent
e49c19eb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
adapter_vk.c
dlls/wined3d/adapter_vk.c
+0
-15
context_vk.c
dlls/wined3d/context_vk.c
+14
-0
No files found.
dlls/wined3d/adapter_vk.c
View file @
ce59348c
...
...
@@ -1724,7 +1724,6 @@ static void adapter_vk_draw_primitive(struct wined3d_device *device,
struct
wined3d_context_vk
*
context_vk
;
VkCommandBuffer
vk_command_buffer
;
uint32_t
instance_count
;
unsigned
int
i
;
TRACE
(
"device %p, state %p, parameters %p.
\n
"
,
device
,
state
,
parameters
);
...
...
@@ -1744,20 +1743,6 @@ static void adapter_vk_draw_primitive(struct wined3d_device *device,
if
(
context_vk
->
c
.
transform_feedback_active
)
{
if
(
!
context_vk
->
vk_so_counter_bo
.
vk_buffer
)
{
struct
wined3d_bo_vk
*
bo
=
&
context_vk
->
vk_so_counter_bo
;
if
(
!
wined3d_context_vk_create_bo
(
context_vk
,
ARRAY_SIZE
(
context_vk
->
vk_so_counters
)
*
sizeof
(
uint32_t
)
*
2
,
VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT
,
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
,
bo
))
ERR
(
"Failed to create counter BO.
\n
"
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
context_vk
->
vk_so_counters
);
++
i
)
{
context_vk
->
vk_so_counters
[
i
]
=
bo
->
vk_buffer
;
context_vk
->
vk_so_offsets
[
i
]
=
bo
->
b
.
buffer_offset
+
i
*
sizeof
(
uint32_t
)
*
2
;
}
}
wined3d_context_vk_reference_bo
(
context_vk
,
&
context_vk
->
vk_so_counter_bo
);
if
(
context_vk
->
c
.
transform_feedback_paused
)
VK_CALL
(
vkCmdBeginTransformFeedbackEXT
(
vk_command_buffer
,
0
,
ARRAY_SIZE
(
context_vk
->
vk_so_counters
),
...
...
dlls/wined3d/context_vk.c
View file @
ce59348c
...
...
@@ -2813,6 +2813,20 @@ static void wined3d_context_vk_bind_stream_output_buffers(struct wined3d_context
struct
wined3d_buffer
*
buffer
;
unsigned
int
i
,
first
,
count
;
if
(
!
context_vk
->
vk_so_counter_bo
.
vk_buffer
)
{
struct
wined3d_bo_vk
*
bo
=
&
context_vk
->
vk_so_counter_bo
;
if
(
!
wined3d_context_vk_create_bo
(
context_vk
,
ARRAY_SIZE
(
context_vk
->
vk_so_counters
)
*
sizeof
(
uint32_t
)
*
2
,
VK_BUFFER_USAGE_TRANSFORM_FEEDBACK_COUNTER_BUFFER_BIT_EXT
,
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
,
bo
))
ERR
(
"Failed to create counter BO.
\n
"
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
context_vk
->
vk_so_counters
);
++
i
)
{
context_vk
->
vk_so_counters
[
i
]
=
bo
->
vk_buffer
;
context_vk
->
vk_so_offsets
[
i
]
=
bo
->
b
.
buffer_offset
+
i
*
sizeof
(
uint32_t
)
*
2
;
}
}
first
=
0
;
count
=
0
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
state
->
stream_output
);
++
i
)
...
...
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