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
682d2fd5
Commit
682d2fd5
authored
Apr 17, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Implement Vulkan buffer uploads.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3f459bb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
buffer.c
dlls/wined3d/buffer.c
+26
-1
No files found.
dlls/wined3d/buffer.c
View file @
682d2fd5
...
...
@@ -1649,7 +1649,32 @@ static void wined3d_buffer_vk_unload_location(struct wined3d_buffer *buffer,
static
void
wined3d_buffer_vk_upload_ranges
(
struct
wined3d_buffer
*
buffer
,
struct
wined3d_context
*
context
,
const
void
*
data
,
unsigned
int
data_offset
,
unsigned
int
range_count
,
const
struct
wined3d_range
*
ranges
)
{
FIXME
(
"Not implemented.
\n
"
);
struct
wined3d_resource
*
resource
=
&
buffer
->
resource
;
const
struct
wined3d_range
*
range
;
struct
wined3d_bo_address
dst
;
unsigned
int
i
=
range_count
;
void
*
map_ptr
;
if
(
!
range_count
)
return
;
dst
.
buffer_object
=
buffer
->
buffer_object
;
dst
.
addr
=
NULL
;
if
(
!
(
map_ptr
=
wined3d_context_map_bo_address
(
context
,
&
dst
,
resource
->
size
,
resource
->
bind_flags
,
WINED3D_MAP_WRITE
)))
{
FIXME
(
"Failed to map buffer.
\n
"
);
return
;
}
while
(
i
--
)
{
range
=
&
ranges
[
i
];
memcpy
((
uint8_t
*
)
map_ptr
+
range
->
offset
,
(
uint8_t
*
)
data
+
range
->
offset
-
data_offset
,
range
->
size
);
}
wined3d_context_unmap_bo_address
(
context
,
&
dst
,
resource
->
bind_flags
,
range_count
,
ranges
);
}
static
void
wined3d_buffer_vk_download_ranges
(
struct
wined3d_buffer
*
buffer
,
struct
wined3d_context
*
context
,
...
...
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