aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_emit.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-11-18 08:02:58 -0500
committerAlyssa Rosenzweig <[email protected]>2019-11-18 08:48:54 -0500
commit36633400499d109865eefd0e226fcd78cf33e02f (patch)
tree10cce0b2ed9451d5805c7760a4e389b201ea110d /src/panfrost/midgard/midgard_emit.c
parent6f17fe0606a144f977d8b70a7ee9f8371abc144b (diff)
pan/midgard: Use shader stage in mir_op_computes_derivative
A 'normal' texture op may be emitted in a vertex shader on T720 but it still doesn't take any derivatives. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_emit.c')
-rw-r--r--src/panfrost/midgard/midgard_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_emit.c b/src/panfrost/midgard/midgard_emit.c
index 7559a34dcfb..63dcb41ad41 100644
--- a/src/panfrost/midgard/midgard_emit.c
+++ b/src/panfrost/midgard/midgard_emit.c
@@ -430,7 +430,7 @@ emit_binary_bundle(compiler_context *ctx,
ctx->texture_op_count--;
- if (mir_op_computes_derivatives(ins->texture.op)) {
+ if (mir_op_computes_derivatives(ctx->stage, ins->texture.op)) {
bool continues = ctx->texture_op_count > 0;
/* Control flow complicates helper invocation