glsl/tests/warnings-test: add fallback srcdir/abs_builddir defines
authorEmil Velikov <emil.velikov@collabora.com>
Sun, 26 Feb 2017 21:06:07 +0000 (21:06 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Mar 2017 14:31:22 +0000 (15:31 +0100)
commit81ccc7a484ae8f9f242a42a80a3d09e6987cc816
treef446d93bb5c9d3de547e282ac2fed0d1296490c4
parent4b366b171da2d77c92cef43833f50d4cf2427dcf
glsl/tests/warnings-test: add fallback srcdir/abs_builddir defines

There is no robust way to detect either one, so simply hope for the best
and warn just in case.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/compiler/glsl/tests/warnings-test.sh