mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 10:40:11 +01:00
r300g: Fix path to test programs for out-of-tree builds
Fixes make check in that case. Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
c04a6d5c29
commit
cd765cf7ee
2 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ r300_compiler_tests_LDADD = libr300.la libr300-helper.la \
|
|||
$(top_builddir)/src/util/libmesautil.la \
|
||||
$(GALLIUM_COMMON_LIB_DEPS)
|
||||
r300_compiler_tests_CPPFLAGS = \
|
||||
-DTEST_PATH=\"$(top_srcdir)/src/gallium/drivers/r300/compiler/tests\" \
|
||||
-I$(top_srcdir)/src/gallium/drivers/r300/compiler
|
||||
r300_compiler_tests_SOURCES = $(COMPILER_TESTS_SOURCES)
|
||||
|
||||
|
|
|
|||
|
|
@ -543,7 +543,7 @@ unsigned load_program(
|
|||
unsigned i = 0;
|
||||
|
||||
memset(line, 0, sizeof(line));
|
||||
snprintf(path, MAX_PATH_LENGTH, "compiler/tests/%s", filename);
|
||||
snprintf(path, MAX_PATH_LENGTH, TEST_PATH "/%s", filename);
|
||||
file = fopen(path, "r");
|
||||
if (!file) {
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue