[Mesa-dev] [PATCH] vc4: Fix failed instruction path of QIR validate pass

Eric Anholt eric at anholt.net
Tue May 31 17:55:52 UTC 2016


Rhys Kidd <rhyskidd at gmail.com> writes:

> Correct use of qir_dump_inst() within QIR validate pass.
>
> Reported by the following GCC warning:
>
> mesa/src/gallium/drivers/vc4/vc4_qir_validate.c: In function 'fail_instr':
> mesa/src/gallium/drivers/vc4/vc4_qir_validate.c:31:23: warning: passing argument 1 of 'qir_dump_inst' from incompatible pointer type
>          qir_dump_inst(stderr, inst);
>                        ^
> In file included from mesa/src/gallium/drivers/vc4/vc4_qir_validate.c:24:0:
> mesa/src/gallium/drivers/vc4/vc4_qir.h:489:6: note: expected 'struct vc4_compile *' but argument is of type 'struct _IO_FILE *'
>  void qir_dump_inst(struct vc4_compile *c, struct qinst *inst);
>       ^

I trimmed the long commit message and pushed.  Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160531/199a88e7/attachment-0001.sig>


More information about the mesa-dev mailing list