Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alyssa Rosenzweig
mesa
Commits
3e42b40e
Commit
3e42b40e
authored
Jul 26, 2021
by
Alyssa Rosenzweig
💜
Browse files
pan/va: Pack the .reconverge flag
Signed-off-by:
Alyssa Rosenzweig
<
alyssa@collabora.com
>
parent
adf7c955
Changes
1
Show whitespace changes
Inline
Side-by-side
src/panfrost/bifrost/valhall/va_pack.c
View file @
3e42b40e
...
@@ -361,11 +361,17 @@ va_pack_instr(const bi_instr *I, unsigned action)
...
@@ -361,11 +361,17 @@ va_pack_instr(const bi_instr *I, unsigned action)
return
hex
;
return
hex
;
}
}
static
bool
va_last_in_block
(
bi_block
*
block
,
bi_instr
*
I
)
{
return
(
I
->
link
.
next
==
&
block
->
instructions
);
}
static
bool
static
bool
va_should_return
(
bi_block
*
block
,
bi_instr
*
I
)
va_should_return
(
bi_block
*
block
,
bi_instr
*
I
)
{
{
/* Don't return within a block */
/* Don't return within a block */
if
(
I
->
link
.
next
!=
&
block
->
instructions
)
if
(
!
va_last_in_block
(
block
,
I
)
)
return
false
;
return
false
;
/* Don't return if we're succeeded by instructions */
/* Don't return if we're succeeded by instructions */
...
@@ -386,7 +392,11 @@ va_pack_action(bi_block *block, bi_instr *I)
...
@@ -386,7 +392,11 @@ va_pack_action(bi_block *block, bi_instr *I)
if
(
va_should_return
(
block
,
I
))
if
(
va_should_return
(
block
,
I
))
return
0x7
|
0x8
;
return
0x7
|
0x8
;
/* TODO: Barrier, reconverge, thread discard, ATEST */
/* .reconverge */
if
(
va_last_in_block
(
block
,
I
)
&&
bi_reconverge_branches
(
block
))
return
0x2
|
0x8
;
/* TODO: Barrier, thread discard, ATEST */
/* TODO: Generalize waits */
/* TODO: Generalize waits */
if
(
valhall_opcodes
[
I
->
op
].
nr_staging_dests
>
0
)
if
(
valhall_opcodes
[
I
->
op
].
nr_staging_dests
>
0
)
...
...
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