nir: rename nir_lower_samplers.c{pp,}
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 17 Sep 2015 15:12:17 +0000 (16:12 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 21 Sep 2015 16:02:06 +0000 (17:02 +0100)
commitde7ffdb38343b7f9292184ca827987de9852c80c
treec3c1c46a55051e69cf84d5874d1ecbe16570acc4
parentd130cda4531602185dcf7cafe217c9b7abdba954
nir: rename nir_lower_samplers.c{pp,}

With the only C++ function having its own wrapper we can 'demote' this
file to a normal C one. This allows us to get rid of extern C { #include
<foo.h> } 'hacks'. Plus some of the headers may use C99 initializers,
which are not supported by the ISO standard.

This may cause build issue on incremental builds. If so run the
following:

sed -i -e 's|samplers\.cpp|samplers.c|' src/glsl/nir/.deps/nir_lower_samplers.Plo

Fixes: ef8eebc6ad5(nir: support indirect indexing samplers in struct arrays)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reported-by: Gottfried Haider <gottfried.haider@gmail.com>
Tested-by: Gottfried Haider <gottfried.haider@gmail.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/glsl/Makefile.sources
src/glsl/nir/nir_lower_samplers.c [new file with mode: 0644]
src/glsl/nir/nir_lower_samplers.cpp [deleted file]