summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/piglit/piglit/0003-tests-util-piglit-shader.c-do-not-hardcode-build-pat.patch
blob: ce5cbd3ea97891f7f29348f70c56f3176525673b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 7d2d23125f1946a7b74f9a427388d469500fcd8d Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex.kanavin@gmail.com>
Date: Tue, 10 Nov 2020 17:13:50 +0000
Subject: [PATCH] tests/util/piglit-shader.c: do not hardcode build path into
 target binary

This helps reproducibilty.

Upstream-Status: Inappropriate [oe-core specific]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
 tests/util/piglit-shader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c
index 1787eb180..9e74704b1 100644
--- a/tests/util/piglit-shader.c
+++ b/tests/util/piglit-shader.c
@@ -73,7 +73,7 @@ piglit_compile_shader(GLenum target, const char *filename)
 
 	source_dir = getenv("PIGLIT_SOURCE_DIR");
 	if (source_dir == NULL) {
-		source_dir = SOURCE_DIR;
+		source_dir = ".";
 	}
 
 	snprintf(filename_with_path, FILENAME_MAX - 1,