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
13d626fc
There was an error fetching the commit references. Please try again later.
Commit
13d626fc
authored
6 years ago
by
Fernando Sahmkow
Committed by
FernandoS27
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use ReadBlockUnsafe for fetyching DMA CommandLists
parent
06d1c5a9
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/dma_pusher.cpp
+2
-2
2 additions, 2 deletions
src/video_core/dma_pusher.cpp
src/video_core/memory_manager.h
+0
-2
0 additions, 2 deletions
src/video_core/memory_manager.h
with
2 additions
and
4 deletions
src/video_core/dma_pusher.cpp
+
2
−
2
View file @
13d626fc
...
@@ -57,8 +57,8 @@ bool DmaPusher::Step() {
...
@@ -57,8 +57,8 @@ bool DmaPusher::Step() {
// Push buffer non-empty, read a word
// Push buffer non-empty, read a word
command_headers
.
resize
(
command_list_header
.
size
);
command_headers
.
resize
(
command_list_header
.
size
);
gpu
.
MemoryManager
().
ReadBlock
(
dma_get
,
command_headers
.
data
(),
gpu
.
MemoryManager
().
ReadBlock
Unsafe
(
dma_get
,
command_headers
.
data
(),
command_list_header
.
size
*
sizeof
(
u32
));
command_list_header
.
size
*
sizeof
(
u32
));
for
(
const
CommandHeader
&
command_header
:
command_headers
)
{
for
(
const
CommandHeader
&
command_header
:
command_headers
)
{
...
...
This diff is collapsed.
Click to expand it.
src/video_core/memory_manager.h
+
0
−
2
View file @
13d626fc
...
@@ -65,7 +65,6 @@ public:
...
@@ -65,7 +65,6 @@ public:
u8
*
GetPointer
(
GPUVAddr
addr
);
u8
*
GetPointer
(
GPUVAddr
addr
);
const
u8
*
GetPointer
(
GPUVAddr
addr
)
const
;
const
u8
*
GetPointer
(
GPUVAddr
addr
)
const
;
/*
/*
* ReadBlock and WriteBlock are full read and write operations over virtual
* ReadBlock and WriteBlock are full read and write operations over virtual
* GPU Memory. It's important to use these when GPU memory may not be continous
* GPU Memory. It's important to use these when GPU memory may not be continous
...
@@ -90,7 +89,6 @@ public:
...
@@ -90,7 +89,6 @@ public:
void
WriteBlockUnsafe
(
GPUVAddr
dest_addr
,
const
void
*
src_buffer
,
const
std
::
size_t
size
);
void
WriteBlockUnsafe
(
GPUVAddr
dest_addr
,
const
void
*
src_buffer
,
const
std
::
size_t
size
);
void
CopyBlockUnsafe
(
GPUVAddr
dest_addr
,
GPUVAddr
src_addr
,
const
std
::
size_t
size
);
void
CopyBlockUnsafe
(
GPUVAddr
dest_addr
,
GPUVAddr
src_addr
,
const
std
::
size_t
size
);
private:
private:
using
VMAMap
=
std
::
map
<
GPUVAddr
,
VirtualMemoryArea
>
;
using
VMAMap
=
std
::
map
<
GPUVAddr
,
VirtualMemoryArea
>
;
using
VMAHandle
=
VMAMap
::
const_iterator
;
using
VMAHandle
=
VMAMap
::
const_iterator
;
...
...
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