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
cacb934f
There was an error fetching the commit references. Please try again later.
Commit
cacb934f
authored
6 years ago
by
ReinUsesLisp
Browse files
Options
Downloads
Patches
Plain Diff
shader_decode: Implement EXIT
parent
0c049e0a
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
+32
-1
32 additions, 1 deletion
src/video_core/shader/decode/other.cpp
with
32 additions
and
1 deletion
src/video_core/shader/decode/other.cpp
+
32
−
1
View file @
cacb934f
...
@@ -16,7 +16,38 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
...
@@ -16,7 +16,38 @@ u32 ShaderIR::DecodeOther(BasicBlock& bb, u32 pc) {
const
Instruction
instr
=
{
program_code
[
pc
]};
const
Instruction
instr
=
{
program_code
[
pc
]};
const
auto
opcode
=
OpCode
::
Decode
(
instr
);
const
auto
opcode
=
OpCode
::
Decode
(
instr
);
UNIMPLEMENTED
();
switch
(
opcode
->
get
().
GetId
())
{
case
OpCode
::
Id
::
EXIT
:
{
const
Tegra
::
Shader
::
ConditionCode
cc
=
instr
.
flow_condition_code
;
UNIMPLEMENTED_IF_MSG
(
cc
!=
Tegra
::
Shader
::
ConditionCode
::
T
,
"EXIT condition code used: {}"
,
static_cast
<
u32
>
(
cc
));
switch
(
instr
.
flow
.
cond
)
{
case
Tegra
::
Shader
::
FlowCondition
::
Always
:
bb
.
push_back
(
Operation
(
OperationCode
::
Exit
));
if
(
instr
.
pred
.
pred_index
==
static_cast
<
u64
>
(
Tegra
::
Shader
::
Pred
::
UnusedIndex
))
{
// If this is an unconditional exit then just end processing here,
// otherwise we have to account for the possibility of the condition
// not being met, so continue processing the next instruction.
pc
=
MAX_PROGRAM_LENGTH
-
1
;
}
break
;
case
Tegra
::
Shader
::
FlowCondition
::
Fcsm_Tr
:
// TODO(bunnei): What is this used for? If we assume this conditon is not
// satisifed, dual vertex shaders in Farming Simulator make more sense
UNIMPLEMENTED_MSG
(
"Skipping unknown FlowCondition::Fcsm_Tr"
);
break
;
default
:
UNIMPLEMENTED_MSG
(
"Unhandled flow condition: {}"
,
static_cast
<
u32
>
(
instr
.
flow
.
cond
.
Value
()));
}
break
;
}
default
:
UNIMPLEMENTED_MSG
(
"Unhandled instruction: {}"
,
opcode
->
get
().
GetName
());
}
return
pc
;
return
pc
;
}
}
...
...
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