Advertisement
Guest User

Untitled

a guest
Mar 8th, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.04 KB | None | 0 0
  1. $ git clone https://github.com/powervr-graphics/Native_SDK.git
  2. $ cd Native_SDK
  3.  
  4. // try to build; fix issues
  5.  
  6. $ git diff
  7. diff --git a/Examples/Advanced/GnomeHorde/Vulkan/Build/LinuxGeneric/Makefile b/Examples/Advanced/GnomeHorde/Vulkan/Build/LinuxGeneric/Makefile
  8. index 97d0e2ba..2e2a00be 100644
  9. --- a/Examples/Advanced/GnomeHorde/Vulkan/Build/LinuxGeneric/Makefile
  10. +++ b/Examples/Advanced/GnomeHorde/Vulkan/Build/LinuxGeneric/Makefile
  11. @@ -11,7 +11,7 @@ SDKDIR  = ../../../../../..
  12.  OUTNAME = VulkanGnomeHorde
  13.  DEPENDS =  PVRCore PVRAssets PVRVk PVRShell PVRUtilsVk
  14.  LIBRARIES =  PVRUtilsVk PVRShell PVRVk PVRAssets PVRCore
  15. -LIBPATHS =  ../../../../../../Framework/Bin/Linux_$(PLAT_SUFFIX)/$(DEBUG_RELEASE)$(WS)
  16. +LIBPATHS =  ../../../../../../Framework/Bin/$(PLAT_SUFFIX)/$(DEBUG_RELEASE)$(WS)
  17.  
  18.  OBJECTS +=     \
  19.             Vulkan/VulkanGnomeHorde.o
  20. diff --git a/External/concurrent_queue/blockingconcurrentqueue.h b/External/concurrent_queue/blockingconcurrentqueue.h
  21. index b2cc9a69..a88f6358 100755
  22. --- a/External/concurrent_queue/blockingconcurrentqueue.h
  23. +++ b/External/concurrent_queue/blockingconcurrentqueue.h
  24. @@ -418,7 +418,7 @@ private:
  25.  
  26.                 inner.swap(other.inner);
  27.                 sema.swap(other.sema);
  28. -               std::swap(unblocking, other.unblocking);
  29. +               unblocking.exchange(other.unblocking);
  30.                 std::swap(may_be_unblocking, other.may_be_unblocking);
  31.                 return *this;
  32.         }
  33.  
  34. $ cd Examples/Advanced/GnomeHorde/Vulkan/Build/LinuxGeneric
  35. $ CROSS_COMPILE= make PLATFORM=armv8_64 -j2
  36. $ cd ../armv8_64/ReleaseNullWS/
  37. $ ./VulkanGnomeHorde
  38.  
  39. // crash, as it looks at swap right after the first frame; oh well
  40.  
  41. $ cd -
  42. $ CROSS_COMPILE= make clean PLATFORM=armv8_64 -j2
  43. $ CROSS_COMPILE= Debug=1 make PLATFORM=armv8_64 -j2
  44. $ cd ../armv8_64/DebugNullWS/
  45. $ gdb ./VulkanGnomeHorde
  46. (gdb) r
  47.  
  48. // no crash; record video
  49. // 5 minutes later; crash
  50.  
  51. (4789) PVR:(Error): _AllocateDeviceMemory: Problem to allocate memory for VK ALLOC (PVRSRV_ERROR_PMR_FAILED_TO_ALLOC_PAGES) [ :0 ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement