[Mesa-dev] [PATCH] mesa/st: Include nir.h for nir_shader symbol.

Matt Turner mattst88 at gmail.com
Tue Jun 28 02:08:08 UTC 2016


On Mon, Jun 27, 2016 at 6:45 PM, Vinson Lee <vlee at freedesktop.org> wrote:
> Fix this build error with GCC 4.4.
>
>   CC     state_tracker/st_nir_lower_builtin.lo
> In file included from state_tracker/st_nir_lower_builtin.c:61:
> state_tracker/st_nir.h:34: error: redefinition of typedef ‘nir_shader’
> ../../src/compiler/nir/nir.h:1830: note: previous declaration of ‘nir_shader’ was here

This error seems to imply that nir.h is already being included somehow.

Does just removing the typedef solve the problem? Can we figure out
how nir.h is already being included and remove that?


More information about the mesa-dev mailing list