[Mesa-dev] [PATCH 2/3] nir: forward-declare 'struct gl_shader_program'

Jason Ekstrand jason at jlekstrand.net
Sat May 14 20:30:53 UTC 2016


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Sat, May 14, 2016 at 1:10 PM, Rob Clark <robdclark at gmail.com> wrote:

> From: Rob Clark <robclark at freedesktop.org>
>
> Drop extra #include which is otherwise unneeded (and makes this header
> difficult to include from outside of src/mesa).
>
> Signed-off-by: Rob Clark <robclark at freedesktop.org>
> ---
>  src/compiler/nir/glsl_to_nir.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/compiler/nir/glsl_to_nir.h
> b/src/compiler/nir/glsl_to_nir.h
> index e3fe9b0..14641fc 100644
> --- a/src/compiler/nir/glsl_to_nir.h
> +++ b/src/compiler/nir/glsl_to_nir.h
> @@ -26,12 +26,13 @@
>   */
>
>  #include "nir.h"
> -#include "compiler/glsl/glsl_parser_extras.h"
>
>  #ifdef __cplusplus
>  extern "C" {
>  #endif
>
> +struct gl_shader_program;
> +
>  nir_shader *glsl_to_nir(const struct gl_shader_program *shader_prog,
>                          gl_shader_stage stage,
>                          const nir_shader_compiler_options *options);
> --
> 2.5.5
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160514/ad0c325e/attachment.html>


More information about the mesa-dev mailing list