diff options
Diffstat (limited to 'meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0008-demos-make-shader-location-relative.patch')
-rw-r--r-- | meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0008-demos-make-shader-location-relative.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0008-demos-make-shader-location-relative.patch b/meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0008-demos-make-shader-location-relative.patch index 281f9069..16409b57 100644 --- a/meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0008-demos-make-shader-location-relative.patch +++ b/meta-amdfalconx86/recipes-graphics/lunarg-sdk/vulkan-loader-layers/0008-demos-make-shader-location-relative.patch @@ -19,7 +19,7 @@ Signed-off-by: Awais Belal <awais_belal@mentor.com> 2 files changed, 105 insertions(+), 8 deletions(-) diff --git a/demos/cube.c b/demos/cube.c -index 5b26288..b4a787e 100644 +index 6017444..f79bc59 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -29,6 +29,7 @@ @@ -27,7 +27,7 @@ index 5b26288..b4a787e 100644 #include <assert.h> #include <signal.h> +#include <unistd.h> - #ifdef __linux__ + #if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR) #include <X11/Xutil.h> #endif @@ -415,6 +416,8 @@ struct demo { @@ -150,10 +150,10 @@ index 5b26288..b4a787e 100644 static void demo_init(struct demo *demo, int argc, char **argv) { vec3 eye = {0.0f, 3.0f, 5.0f}; vec3 origin = {0, 0, 0}; -@@ -3093,6 +3143,8 @@ static void demo_init(struct demo *demo, int argc, char **argv) { - 1.0f, 0.1f, 100.0f); - mat4x4_look_at(demo->view_matrix, eye, origin, up); +@@ -3053,6 +3053,8 @@ static void demo_init(struct demo *demo, int argc, char **argv) { mat4x4_identity(demo->model_matrix); + + demo->projection_matrix[1][1]*=-1; //Flip projection matrix from GL to Vulkan orientation. + + find_bin_path(argv[0], demo->bin_path); } |