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
4b141791
There was an error fetching the commit references. Please try again later.
Commit
4b141791
authored
10 years ago
by
Tony Wasserka
Browse files
Options
Downloads
Patches
Plain Diff
GSP: Add a few comments.
parent
9b0d0c81
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/core/hle/service/gsp.cpp
+7
-1
7 additions, 1 deletion
src/core/hle/service/gsp.cpp
src/core/hle/service/gsp.h
+8
-0
8 additions, 0 deletions
src/core/hle/service/gsp.h
with
15 additions
and
1 deletion
src/core/hle/service/gsp.cpp
+
7
−
1
View file @
4b141791
...
...
@@ -171,6 +171,9 @@ void TriggerCmdReqQueue(Service::Interface* self) {
command
.
dma_request
.
size
);
break
;
// ctrulib homebrew sends all relevant command list data with this command,
// hence we do all "interesting" stuff here and do nothing in SET_COMMAND_LIST_FIRST.
// TODO: This will need some rework in the future.
case
GXCommandId
::
SET_COMMAND_LIST_LAST
:
{
auto
&
params
=
command
.
set_command_list_last
;
...
...
@@ -186,6 +189,8 @@ void TriggerCmdReqQueue(Service::Interface* self) {
break
;
}
// It's assumed that the two "blocks" behave equivalently.
// Presumably this is done simply to allow two memory fills to run in parallel.
case
GXCommandId
::
SET_MEMORY_FILL
:
{
auto
&
params
=
command
.
memory_fill
;
...
...
@@ -218,9 +223,10 @@ void TriggerCmdReqQueue(Service::Interface* self) {
break
;
}
// TODO: Figure out what exactly SET_COMMAND_LIST_FIRST and SET_COMMAND_LIST_LAST
// are supposed to do.
case
GXCommandId
::
SET_COMMAND_LIST_FIRST
:
{
// TODO
break
;
}
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/service/gsp.h
+
8
−
0
View file @
4b141791
...
...
@@ -15,9 +15,17 @@ namespace GSP_GPU {
enum
class
GXCommandId
:
u32
{
REQUEST_DMA
=
0x00
,
SET_COMMAND_LIST_LAST
=
0x01
,
// Fills a given memory range with a particular value
SET_MEMORY_FILL
=
0x02
,
// Copies an image and optionally performs color-conversion or scaling.
// This is highly similar to the GameCube's EFB copy feature
SET_DISPLAY_TRANSFER
=
0x03
,
// Conceptionally similar to SET_DISPLAY_TRANSFER and presumable uses the same hardware path
SET_TEXTURE_COPY
=
0x04
,
SET_COMMAND_LIST_FIRST
=
0x05
,
};
...
...
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