Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
f54280da
There was an error fetching the commit references. Please try again later.
Commit
f54280da
authored
3 years ago
by
Fernando Sahmkow
Browse files
Options
Downloads
Patches
Plain Diff
Inline2Memory: Flush before writting buffer.
parent
11099dda
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/video_core/engines/engine_upload.cpp
+1
-0
1 addition, 0 deletions
src/video_core/engines/engine_upload.cpp
src/video_core/memory_manager.h
+2
-2
2 additions, 2 deletions
src/video_core/memory_manager.h
with
3 additions
and
2 deletions
src/video_core/engines/engine_upload.cpp
+
1
−
0
View file @
f54280da
...
@@ -32,6 +32,7 @@ void State::ProcessData(const u32 data, const bool is_last_call) {
...
@@ -32,6 +32,7 @@ void State::ProcessData(const u32 data, const bool is_last_call) {
}
}
const
GPUVAddr
address
{
regs
.
dest
.
Address
()};
const
GPUVAddr
address
{
regs
.
dest
.
Address
()};
if
(
is_linear
)
{
if
(
is_linear
)
{
memory_manager
.
FlushRegion
(
address
,
copy_size
);
memory_manager
.
WriteBlock
(
address
,
inner_buffer
.
data
(),
copy_size
);
memory_manager
.
WriteBlock
(
address
,
inner_buffer
.
data
(),
copy_size
);
}
else
{
}
else
{
UNIMPLEMENTED_IF
(
regs
.
dest
.
z
!=
0
);
UNIMPLEMENTED_IF
(
regs
.
dest
.
z
!=
0
);
...
...
This diff is collapsed.
Click to expand it.
src/video_core/memory_manager.h
+
2
−
2
View file @
f54280da
...
@@ -143,6 +143,8 @@ public:
...
@@ -143,6 +143,8 @@ public:
[[
nodiscard
]]
GPUVAddr
Allocate
(
std
::
size_t
size
,
std
::
size_t
align
);
[[
nodiscard
]]
GPUVAddr
Allocate
(
std
::
size_t
size
,
std
::
size_t
align
);
void
Unmap
(
GPUVAddr
gpu_addr
,
std
::
size_t
size
);
void
Unmap
(
GPUVAddr
gpu_addr
,
std
::
size_t
size
);
void
FlushRegion
(
GPUVAddr
gpu_addr
,
size_t
size
)
const
;
private:
private:
[[
nodiscard
]]
PageEntry
GetPageEntry
(
GPUVAddr
gpu_addr
)
const
;
[[
nodiscard
]]
PageEntry
GetPageEntry
(
GPUVAddr
gpu_addr
)
const
;
void
SetPageEntry
(
GPUVAddr
gpu_addr
,
PageEntry
page_entry
,
std
::
size_t
size
=
page_size
);
void
SetPageEntry
(
GPUVAddr
gpu_addr
,
PageEntry
page_entry
,
std
::
size_t
size
=
page_size
);
...
@@ -153,8 +155,6 @@ private:
...
@@ -153,8 +155,6 @@ private:
void
TryLockPage
(
PageEntry
page_entry
,
std
::
size_t
size
);
void
TryLockPage
(
PageEntry
page_entry
,
std
::
size_t
size
);
void
TryUnlockPage
(
PageEntry
page_entry
,
std
::
size_t
size
);
void
TryUnlockPage
(
PageEntry
page_entry
,
std
::
size_t
size
);
void
FlushRegion
(
GPUVAddr
gpu_addr
,
size_t
size
)
const
;
void
ReadBlockImpl
(
GPUVAddr
gpu_src_addr
,
void
*
dest_buffer
,
std
::
size_t
size
,
void
ReadBlockImpl
(
GPUVAddr
gpu_src_addr
,
void
*
dest_buffer
,
std
::
size_t
size
,
bool
is_safe
)
const
;
bool
is_safe
)
const
;
void
WriteBlockImpl
(
GPUVAddr
gpu_dest_addr
,
const
void
*
src_buffer
,
std
::
size_t
size
,
void
WriteBlockImpl
(
GPUVAddr
gpu_dest_addr
,
const
void
*
src_buffer
,
std
::
size_t
size
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment