forked from LunarG/VulkanTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vkreplay: Fix issues replaying 32-bit large file
On 32-bit Linux/Android, fseek and ftell only works well for trace file smaller than 2GB which will cause problem when geting file length and using portability table on a large trace file. This change fixes the issue by: * x86 version: ** Use fseeko and ftello instead of fseek and ftell. "-D_FILE_OFFSET_BITS=64" has been defined in vktrace's CMakeList.txt to make those functions support large file. * 32-bit Android version: ** Implement vktrace_fseek and vktrace_ftell using lseek64 which is available in NDK. For the NDK problem of using fseeko and ftello, refer to android/ndk#480
- Loading branch information
Justus Wang
committed
Jul 17, 2018
1 parent
e3cd939
commit c2f6e35
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters