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
4e219458
Commit
4e219458
authored
Jul 14, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the map pointer in the wined3d_deferred_upload structure.
parent
f7157408
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cs.c
dlls/wined3d/cs.c
+5
-4
No files found.
dlls/wined3d/cs.c
View file @
4e219458
...
@@ -29,7 +29,7 @@ struct wined3d_deferred_upload
...
@@ -29,7 +29,7 @@ struct wined3d_deferred_upload
{
{
struct
wined3d_resource
*
resource
;
struct
wined3d_resource
*
resource
;
unsigned
int
sub_resource_idx
;
unsigned
int
sub_resource_idx
;
uint8_t
*
sysmem
;
uint8_t
*
sysmem
,
*
map_ptr
;
struct
wined3d_box
box
;
struct
wined3d_box
box
;
uint32_t
upload_flags
;
uint32_t
upload_flags
;
};
};
...
@@ -4166,7 +4166,7 @@ static bool wined3d_deferred_context_map_upload_bo(struct wined3d_device_context
...
@@ -4166,7 +4166,7 @@ static bool wined3d_deferred_context_map_upload_bo(struct wined3d_device_context
return
false
;
return
false
;
upload
->
upload_flags
=
0
;
upload
->
upload_flags
=
0
;
map_desc
->
data
=
(
void
*
)
align
((
size_t
)
upload
->
sysmem
,
RESOURCE_ALIGNMENT
)
;
map_desc
->
data
=
upload
->
map_ptr
;
return
true
;
return
true
;
}
}
...
@@ -4201,9 +4201,10 @@ static bool wined3d_deferred_context_map_upload_bo(struct wined3d_device_context
...
@@ -4201,9 +4201,10 @@ static bool wined3d_deferred_context_map_upload_bo(struct wined3d_device_context
wined3d_resource_incref
(
resource
);
wined3d_resource_incref
(
resource
);
upload
->
sub_resource_idx
=
sub_resource_idx
;
upload
->
sub_resource_idx
=
sub_resource_idx
;
upload
->
sysmem
=
sysmem
;
upload
->
sysmem
=
sysmem
;
upload
->
map_ptr
=
(
void
*
)
align
((
size_t
)
upload
->
sysmem
,
RESOURCE_ALIGNMENT
);
upload
->
box
=
*
box
;
upload
->
box
=
*
box
;
map_desc
->
data
=
(
void
*
)
align
((
size_t
)
upload
->
sysmem
,
RESOURCE_ALIGNMENT
)
;
map_desc
->
data
=
upload
->
map_ptr
;
return
true
;
return
true
;
}
}
...
@@ -4217,7 +4218,7 @@ static bool wined3d_deferred_context_unmap_upload_bo(struct wined3d_device_conte
...
@@ -4217,7 +4218,7 @@ static bool wined3d_deferred_context_unmap_upload_bo(struct wined3d_device_conte
{
{
*
box
=
upload
->
box
;
*
box
=
upload
->
box
;
bo
->
addr
.
buffer_object
=
0
;
bo
->
addr
.
buffer_object
=
0
;
bo
->
addr
.
addr
=
(
uint8_t
*
)
align
((
size_t
)
upload
->
sysmem
,
RESOURCE_ALIGNMENT
)
;
bo
->
addr
.
addr
=
upload
->
map_ptr
;
bo
->
flags
=
upload
->
upload_flags
;
bo
->
flags
=
upload
->
upload_flags
;
upload
->
upload_flags
=
0
;
upload
->
upload_flags
=
0
;
return
true
;
return
true
;
...
...
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