pan/midgard: Allow NULL argument in mir_has_arg
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 30 Aug 2019 17:48:41 +0000 (10:48 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fri, 30 Aug 2019 22:50:26 +0000 (15:50 -0700)
commit72cbd2d4e77c782fa67b96ab12e2d2ed60cc7fb7
tree544acbb3a2675e9f82e42f359e588a2d95eaf8c8
parentbcc59ff04df2f2270de3931aa5cf7dcda248bf6f
pan/midgard: Allow NULL argument in mir_has_arg

It's sometimes convenient to call this with no instruction specified. By
definition, a missing instruction cannot reference any argument, so
let's check for NULL and shortciruit to false.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/compiler.h