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
97f33f00
There was an error fetching the commit references. Please try again later.
Commit
97f33f00
authored
6 years ago
by
ReinUsesLisp
Browse files
Options
Downloads
Patches
Plain Diff
shader_decode: Implement SSY and SYNC
parent
abdbafbc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/video_core/shader/decode/other.cpp
+19
-0
19 additions, 0 deletions
src/video_core/shader/decode/other.cpp
with
19 additions
and
0 deletions
src/video_core/shader/decode/other.cpp
+
19
−
0
View file @
97f33f00
...
@@ -57,6 +57,25 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
...
@@ -57,6 +57,25 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
bb
.
push_back
(
Operation
(
OperationCode
::
Bra
,
Immediate
(
target
)));
bb
.
push_back
(
Operation
(
OperationCode
::
Bra
,
Immediate
(
target
)));
break
;
break
;
}
}
case
OpCode
::
Id
::
SSY
:
{
UNIMPLEMENTED_IF_MSG
(
instr
.
bra
.
constant_buffer
!=
0
,
"Constant buffer flow is not supported"
);
// The SSY opcode tells the GPU where to re-converge divergent execution paths, it sets the
// target of the jump that the SYNC instruction will make. The SSY opcode has a similar
// structure to the BRA opcode.
bb
.
push_back
(
Operation
(
OperationCode
::
Ssy
,
Immediate
(
pc
+
instr
.
bra
.
GetBranchTarget
())));
break
;
}
case
OpCode
::
Id
::
SYNC
:
{
const
Tegra
::
Shader
::
ConditionCode
cc
=
instr
.
flow_condition_code
;
UNIMPLEMENTED_IF_MSG
(
cc
!=
Tegra
::
Shader
::
ConditionCode
::
T
,
"SYNC condition code used: {}"
,
static_cast
<
u32
>
(
cc
));
// The SYNC opcode jumps to the address previously set by the SSY opcode
bb
.
push_back
(
Operation
(
OperationCode
::
Sync
));
break
;
}
case
OpCode
::
Id
::
IPA
:
{
case
OpCode
::
Id
::
IPA
:
{
const
auto
&
attribute
=
instr
.
attribute
.
fmt28
;
const
auto
&
attribute
=
instr
.
attribute
.
fmt28
;
const
Tegra
::
Shader
::
IpaMode
input_mode
{
instr
.
ipa
.
interp_mode
.
Value
(),
const
Tegra
::
Shader
::
IpaMode
input_mode
{
instr
.
ipa
.
interp_mode
.
Value
(),
...
...
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