Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mesa
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Panfrost
mesa
Commits
af54cd43
Commit
af54cd43
authored
Dec 13, 2018
by
Alyssa Rosenzweig
💜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midgard: Scan for breaks
parent
264a27f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
src/gallium/drivers/panfrost/midgard/midgard_compile.c
src/gallium/drivers/panfrost/midgard/midgard_compile.c
+18
-0
No files found.
src/gallium/drivers/panfrost/midgard/midgard_compile.c
View file @
af54cd43
...
@@ -1446,6 +1446,20 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr)
...
@@ -1446,6 +1446,20 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr)
ctx
->
texture_op_count
++
;
ctx
->
texture_op_count
++
;
}
}
static
void
emit_jump
(
compiler_context
*
ctx
,
nir_jump_instr
*
instr
)
{
switch
(
instr
->
type
)
{
case
nir_jump_break
:
printf
(
"break..
\n
"
);
break
;
default:
printf
(
"Unknown jump type %d
\n
"
,
instr
->
type
);
break
;
}
}
static
void
static
void
emit_instr
(
compiler_context
*
ctx
,
struct
nir_instr
*
instr
)
emit_instr
(
compiler_context
*
ctx
,
struct
nir_instr
*
instr
)
{
{
...
@@ -1471,6 +1485,10 @@ emit_instr(compiler_context *ctx, struct nir_instr *instr)
...
@@ -1471,6 +1485,10 @@ emit_instr(compiler_context *ctx, struct nir_instr *instr)
emit_tex
(
ctx
,
nir_instr_as_tex
(
instr
));
emit_tex
(
ctx
,
nir_instr_as_tex
(
instr
));
break
;
break
;
case
nir_instr_type_jump
:
emit_jump
(
ctx
,
nir_instr_as_jump
(
instr
));
break
;
case
nir_instr_type_ssa_undef
:
case
nir_instr_type_ssa_undef
:
/* Spurious */
/* Spurious */
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment