aboutsummaryrefslogtreecommitdiff
path: root/demos
AgeCommit message (Collapse)Author
2018-01-31demos: Fix output location of smoketestMark Lobodzinski
2018-01-25demos: Update cube/smoke for submodule compatibilityMark Lobodzinski
2017-12-19demos: Remove vulkaninfo dependency on DISPLAYPetr Kraus
2017-12-15demos: GH1054, make cube shaders inlinePetr Kraus
2017-12-12build: Clear some compiler warningsPetr Kraus
- remove unnecessary ";" after function definitions and namespaces - fix wrong type match in printf for handle types - convert some left-overs to `HandleToUint64`
2017-12-01demos: Fix barrier settings for texture in cube demosKarl Schultz
Change-Id: Ibaa3901daa7a632022b67e53dd34f79be594ded1
2017-11-07demos: Remove HTML in plain-text vulkaninfo outputGabríel Arthúr Pétursson
Change-Id: I6f1192b71aa6f33664a6782dc81e1f8cb7cc5ba1
2017-11-06android: Remove mips targetsCody Northrop
2017-11-02demos: Clarify cube --present_mode optionMike Schuchardt
Change-Id: Ie53724c3612eb5bb9adfbb826149ef87916f0d84
2017-11-01demos: Add html backend and option to vulkaninfoShannon McPherson
- Run clang-format on vulkaninfo.c - Format Instance Extensions section - Complete Layers info tree - Convert spaces to tabs for html output - Fix indentation of html output file - Add Presentable Surfaces to html option - Ammend Presentable Surfaces html output - Extend platform compatibility - Display VkPhysicalDeviceProps in html - Convert DeviceLims and SparseProps to html - Convert memoryType/flags to support html - Complete AppGpuDumpMemProps html upgrade - Complete format properties html upgrade - Improve boolean logic for html_output var - Change output filename to vulkaninfo.html - Create auto-open format property flag info - Update page title, further .html fixes - WIN32 formatting and bug fixes - Clang-format changes - Close clang-format comments - Update file format to code style standard Change-Id: I49c7c6c62a54493fe622bd457f7c61e81806487e
2017-10-29repo: normalize line termination across repoMike Weiblen
This is a scrub of the entire repo to normalize end-of-line termination to conform to the recently added .gitattributes file. A mismatch of line termination can cause difficult-to-resolve conflicts when rebasing or merging. The process performed is described at: https://help.github.com/articles/dealing-with-line-endings/#refreshing-a-repository-after-changing-line-endings The .gitattributes file is required because some files (*.bat and *.sh) are sensitive to line termination. The .gitattributes file is stored in the repo, and overrides settings which could be corrupted by a developer's local git configuration. The .gitattributes file was added in f077c81 This commit completes bcc9fec, which fixed a single file. Change-Id: I75d4594b61cb8aa6a09efb3ed5ace34fe8394871
2017-10-24header: Update to version 1.0.64 of the Vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated Win/Lin json files - updated vk_validation_error_messages.h - updated vk_validation_error_database.txt - updated vulkan.hpp - updated vuid_mapping.py - updated cube.cpp for vulkan-hpp changes Change-Id: I79971c3b54feb1fdad5ea2257e4b1b4c6f9e3c3b
2017-10-20demos: VkFormatString add missing formatsWladimir J. van der Laan
Some formats were shown as unknown in vulkaninfo's list, make sure they're all included.
2017-10-10demos: Use correct type for alphaMode in display surfaceWladimir J. van der Laan
alphaMode in VkDisplaySurfaceCreateInfoKHR is VkDisplayPlaneAlphaFlagBitsKHR, not VkCompositeAlphaFlagBitsKHR.
2017-10-10demos: Update cube.cpp DISPLAY_KHR codeWladimir J. van der Laan
The physical display rendering code didn't compile due to drift in `vulcan.hpp`. Update for these changes. Tested on i.MX8M / Vivante GC7000L.
2017-10-10vulkaninfo: Remove "INFO" messagesJeremy Kniager
Change-Id: I10bb9559bd91f29bb224f7cb90359ec14161a770
2017-10-06build: Limit control flow guard to loader/demosMark Lobodzinski
Change-Id: Ibb95a7192bd95195797d3d10ccc0ed34fe030268
2017-09-13demos: Add support for headless XCBAndreas Bergmeier
For headless XCB we cannot create a surface. Simply ignore XCB if connection could not be established or any other error occured. Change-Id: I32db6aa3fc14887658d4290dcabbe8a1930cd8b3
2017-09-13demos: Print XCB errors to stderrAndreas Bergmeier
Printing to stdout is weird. Change-Id: If53e8708b853989ae8a9ea61fa4d57f27b24b45c
2017-08-23header: Update to version 1.0.59 of the vulkan hdrMark Lobodzinski
- updated vulkan.h - updated vk.xml - updated Win/Lin json files - rebuilt and updated vulkan.hpp - updated vk_validation_error_database.txt - updated vk_validation_error_messages.h - added new code-generated VUIDs (16) to error database - modified object tracker for VUID corner-case - updated vulkaninfo.c for STYPE name change Change-Id: I0870e8bc4e84867e05bd466c13c7428b9b7365ac
2017-08-16android: Updates for NDK r15Cody Northrop
Removes app_dummy from apps that use native activity. For more details refer to: https://github.com/android-ndk/ndk/issues/381
2017-08-15demos: Fix disappearing objects in smoketestKarl Schultz
When an object reaches the end of its "curve" path it receives a new curve. To ease the transition from the old curve to the new curve, the origin of the new curve is the ending point of the old curve. However, this can result in the starting point of the new curve being out of the view. This results in objects slowing leaving the view. Add code to move the origin of the new curve back inside the original view bounds only if the end of the old curve is out of the view bounds. This does not add any additional jarring because any object getting a new origin is already outside the view anyway. Change-Id: I50e88be453f31b9c37878f63c97d4c7c8154e718
2017-08-14demos: Add compositeAlphaFlags fix to cube.cTony Barbour
Change-Id: Id19d11e909ffc21c4aa6a419b071ba53594ae94f
2017-08-14demos: cube.cpp - iterating over compositeAlphaFlagsgwizdz
Error in for loop condition Change-Id: I8c775f961a6c05dd36e7acfdda6e94399365f90d
2017-08-07demos: Revert AppDevInitFormat changesMike Schuchardt
Calling vkGetPhysicalDeviceFormatProperties with extension formats is not valid and causes crashes on some drivers. Revert the list of VkFormats to the original range. Change-Id: I2b7f0bd5bb49a66cd073216e93e3bba35c67ab98
2017-07-28demos: Fix cube to use correct pipeline stage for barrierTony Barbour
Change-Id: Ia85e0acc67694d859077044ad24b13b0ad834811
2017-07-20demos: Fix pointer cast warning in vulkaninfoLenny Komow
Change-Id: I6acebbcbb9a10d86f3b7ec56148d9a680d085921
2017-07-20demos: Add extension support to vulkaninfoJeremy Kniager
Change-Id: I7b9c729a90571d2888d7a22a9899546c547e6153
2017-07-14demos: Add Wayland input handling to smoketestJoey Bzdek
Change-Id: I82cd3f004410dea1d173ef8022091d6f4463d0f5
2017-07-14demos: Clang-format Wayland and cube.cpp refactorJoey Bzdek
Change-Id: I73dac6489e41a94fc53a1c7942888a3a6479a805
2017-07-14demos: Add Wayland input handling to cubeJoey Bzdek
Change-Id: I314ad9bc3e297da93f4d5c1d44289c9cca3a8fde
2017-07-14demos: Refactored Demo class in cubeppJoey Bzdek
Moved 'Demo' declaration to near the top of the file to avoid referencing problems. Change-Id: I084231ada5683971baa073f1b761ac214fa02cfd
2017-06-29demos: Use do-while instead of clunky whileTony Barbour
When acquiring swapchain images Change-Id: I8c502e06490f73fc5c9cd8057cd12869a66ea942
2017-06-20demos: Add missing breakJeremy Hayes
Treat suboptimal as success. Change-Id: I18f0e8592e212c4d1f99294de24cac945bcdb7c3
2017-06-20demos: Destroy instance after closing Xlib connectionKarl Schultz
In the cube demos, destroy the instance after closing the display system connection. It is possible for the driver to register callback functions with a library like Xlib. If the driver is unloaded when Xlib calls those callback functions, a segfault results. Fixes #1894 Change-Id: Ieb25a00f727c4ac05ff24b41c3582b293abf4b95
2017-06-20demos: Update cubeppJeremy Hayes
Modify correct uniform buffer for next frame. Fix fence sync after new throttling scheme. Select alpha based on capabilities in cube. Add uniform buffer per swapchain image to cube. Cube updated to use triple buffering. Change-Id: Ia929bde0e6c3c2129dc9164a65696af1ee0c0329
2017-06-14demos: Modify correct uniform buffer for next frameTony Barbour
Change-Id: I78b8f5ef63fb2c14a3ce431f3e6f6a809e65972f
2017-06-12build: Add CMake flag to suppress LVL contentKarl Schultz
Add CMake flag INSTALL_LVL_FILES (default ON) that when set to OFF, suppresses the installation of LVL artifacts when running "make install" on Linux. This flag doesn't have much use in the LVL repo because when turned off, CMake won't generate an install target in the makefiles. However, for the downstream VulkanTools and VulkanSamples repos, it can be useful to avoid installing LVL files on top of files that may have already been installed from a previous "make install" installation of the LVL repo. An example of such a use case would be the desire to have a more up-to-date version of LVL on the system than the one last merged into the downstream repo. This new flag is meant to address the need mentioned in LVL Pull Request #1844. Change-Id: I421f37ea4e885fbf0a268eff363a28f0537b1953
2017-06-12build: Install smoketest with make installKarl Schultz
smoketest is a standalone app that does not need additional resources like textures or shader programs. Change-Id: I335c0baad82343ffd9ff03763c418df11dcc385d
2017-06-12demos: Remove swapchain layer from demosMark Lobodzinski
Change-Id: I8628686d3caad6bed2261431776ac9a55d0c076f
2017-06-02demos: Fix fence sync after new throttling schemeTony Barbour
f06ab9 cube: Throttle rendering rather than presentation didn't remove the AMD workaround and didn't consider the VK_ERROR_OUT_OF_DATE_KHR path through resize. Change-Id: Ib29bffb5b3c2a82456ad734424af3a9348e897c5
2017-05-23tests: use built-in gl_PositionJeremy Hayes
This change is required for upcoming revision of glslang, which requires location on input/outputs but which does not allow location on built-ins. Change-Id: I9ba8989e5ac69bf422e16d4e7ffc7d33b9f71760
2017-05-12demos: gh1747 - Check for the installed libvulkan.so.1Timo Aaltonen
avoids depending on the development symlink v2: Android doesn't have versioned libs, so don't touch ShellAndroid.cpp
2017-05-02cube: Throttle rendering rather than presentationDamien Leone
It is currently impossible to reliably throttle presentation per the Vulkan spec. The previous code was relying on fences returned by vkAcquireNextImageKHR() to throttle. The only information this fence holds is whether it is possible to render to that image since the *last time* it was presented, which could have happened several frames ago. Instead, we can throttle the rendering by passing a fence to vkQueueSubmit(). The previous code (only the cube.c version) was using a fence there to synchronize a vkMapMemory() in demo_update_data_buffer(), which doesn't seem necessary. Before this commit, we were effectively throttling to the number of frames in the swapchain rather than on FRAME_LAG. In the FIFO present mode, this could schedule too much work in the presentation channel (since we have to account for VBLANK events) and thus causing undesired side effects, such as stutters when trying to move the cube window on a desktop, which is I assume why the throttle code was added in the first place.
2017-04-26demo/smoke Android build update: use latest cmake with Android Studioguanghuafan
2017-04-24vulkaninfo: Fix various entries in VkPhysicalDeviceFeatures outputTobias Markus
The VkPhysicalDeviceFeatures dump missed the multiViewport and samplerAnisotropy fields. The alphaToOne field was at the wrong position (compared to the official definition in the Vulkan specification). The fields {vertex,fragment}StoresAndAtomics as well as shaderTessellationAndGeometryPointSize had the misleading and incorrect names {vertex,tessellation,geometry}SideEffects.
2017-04-12vulkaninfo: Add missing case for CPU deviceChris Forbes
Fixes #1664
2017-04-03demos: Remove DbgMsgs from incremental_present extIan Elliott
The only DbgMsg messages left tell the user, if they use "--incremental_present", whether the functionality is actually being used, or if the VK_KHR_incremental_present extension isn't available. NOTE: When somebody wants to see all of the DbgMsg messages, they should use "git revert" with this commit. Change-Id: Ic4189cbec2a64c50135b16c331c808fbbce975dc
2017-04-03demos: Use VK_KHR_incremental_present extensionIan Elliott
Show how to use the VK_KHR_incremental_present extension. Other notes: - There are a few diagnostic DbgMsg()'s, which can help show the usage. - Added a "--incremental_present" command-line option to turn on use of VK_KHR_incremental_present - Should compile and run on Windows, Linux, and Android, but the feature will only really be used on systems that support the extension. Change-Id: I8a79d806cab7d35197c94dd85358a62b6b7469be
2017-03-27cube: Remove most DbgMsg usage the VK_GOOGLE_display_timing extensionIan Elliott
The only DbgMsg messages left tell the user, if they use "--display_timing", whether the functionality is actually being used, or if the VK_GOOGLE_display_timing extension isn't available. NOTE: When somebody wants to see all of the DbgMsg messages, they should use "git revert" with this commit.