compiler: move the glsl_types C wrapper alongside their C++ brethren
At a later stage we might want to split out the NIR specific [XXX: which one was it], as to make things move obvious and rename the files appropriately. This patch aims to split it out of nir. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Matt Turner <mattst88@gmail.com> Acked-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:

committed by
Emil Velikov

parent
24f984f64a
commit
f694da80c7
@@ -2,5 +2,7 @@ LIBCOMPILER_FILES = \
|
|||||||
builtin_type_macros.h \
|
builtin_type_macros.h \
|
||||||
glsl_types.cpp \
|
glsl_types.cpp \
|
||||||
glsl_types.h \
|
glsl_types.h \
|
||||||
|
nir_types.cpp \
|
||||||
|
nir_types.h \
|
||||||
shader_enums.c \
|
shader_enums.c \
|
||||||
shader_enums.h
|
shader_enums.h
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nir_types.h"
|
#include "nir_types.h"
|
||||||
#include "ir.h"
|
#include "glsl/ir.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
glsl_print_type(const glsl_type *type, FILE *fp)
|
glsl_print_type(const glsl_type *type, FILE *fp)
|
@@ -28,10 +28,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
/* C wrapper around compiler/glsl_types.h */
|
/* C wrapper around compiler/glsl_types.h */
|
||||||
|
|
||||||
#include "compiler/glsl_types.h"
|
#include "glsl_types.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
@@ -74,12 +74,10 @@ NIR_FILES = \
|
|||||||
nir/nir_split_var_copies.c \
|
nir/nir_split_var_copies.c \
|
||||||
nir/nir_sweep.c \
|
nir/nir_sweep.c \
|
||||||
nir/nir_to_ssa.c \
|
nir/nir_to_ssa.c \
|
||||||
nir/nir_types.h \
|
|
||||||
nir/nir_validate.c \
|
nir/nir_validate.c \
|
||||||
nir/nir_vla.h \
|
nir/nir_vla.h \
|
||||||
nir/nir_worklist.c \
|
nir/nir_worklist.c \
|
||||||
nir/nir_worklist.h \
|
nir/nir_worklist.h
|
||||||
nir/nir_types.cpp
|
|
||||||
|
|
||||||
# libglsl
|
# libglsl
|
||||||
|
|
||||||
|
@@ -34,7 +34,7 @@
|
|||||||
#include "util/ralloc.h"
|
#include "util/ralloc.h"
|
||||||
#include "util/set.h"
|
#include "util/set.h"
|
||||||
#include "util/bitset.h"
|
#include "util/bitset.h"
|
||||||
#include "nir_types.h"
|
#include "compiler/nir_types.h"
|
||||||
#include "compiler/shader_enums.h"
|
#include "compiler/shader_enums.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "nir.h"
|
#include "nir.h"
|
||||||
#include "nir_types.h"
|
#include "compiler/nir_types.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Lowers all copy intrinsics to sequences of load/store intrinsics.
|
* Lowers all copy intrinsics to sequences of load/store intrinsics.
|
||||||
|
Reference in New Issue
Block a user