mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 06:40:27 +01:00
pan/midgard: Always set .cont for derivatives in loops
We need to keep the helper invocations alive. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
8f887329c0
commit
2b248af43e
1 changed files with 7 additions and 0 deletions
|
|
@ -260,6 +260,13 @@ emit_binary_bundle(compiler_context *ctx,
|
|||
|
||||
if (mir_op_computes_derivatives(ins->texture.op)) {
|
||||
bool continues = ctx->texture_op_count > 0;
|
||||
|
||||
/* Control flow complicates helper invocation
|
||||
* lifespans, so for now just keep helper threads
|
||||
* around indefinitely with loops. TODO: Proper
|
||||
* analysis */
|
||||
continues |= ctx->loop_count > 0;
|
||||
|
||||
ins->texture.cont = continues;
|
||||
ins->texture.last = !continues;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue