summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan
Commit message (Collapse)AuthorAgeFilesLines
* Optionally scale 3D render contentBastiaan Olij2021-08-262-0/+9
|
* Remove redundant assignments.Anilforextra2021-08-211-2/+2
| | | | Use used_in_transfer instead of used_in_compute twice.
* Fixes to mobile rendererreduz2021-08-172-5/+36
| | | | | | * Make sure shaders are named, to aid in debug in case of failure * SceneRenderRD was being wrongly initialized (virtual functions being called when derivative class not initialized). * Fixed some bugs resulting on the above being corrected.
* Fix init code so it works properly on Vulkan 1.1 devicesBastiaan Olij2021-08-171-28/+26
|
* Upgrade Vulkan memory allocatorPedro J. Estébanez2021-08-133-4/+6
|
* Android: Use volk instead of NDK Vulkan headersRémi Verschelde2021-08-121-14/+3
| | | | | We no longer build the Vulkan loader, and volk lets us load it dynamically. Roblox uses volk on Android so it should work well for us too.
* Use "volk" instead of statically linked Vulkan loader.bruvzg2021-08-125-103/+56
|
* Fixes and optimizations to mobile rendererreduz2021-08-101-20/+85
| | | | | | | * Only apply final actions to attachments used in the last pass. * Fixes to draw list final action (was using continue instead of read/drop). * Profiling regions inside draw lists now properly throw errors. * Ability to enable gpu profile printing from project settings. (used to debug).
* Use subpasses to do 3D rendering and resolve in mobile rendererBastiaan Olij2021-08-062-9/+30
|
* Merge pull request #51103 from Calinou/vulkan-detect-intel-title-caseRémi Verschelde2021-07-311-1/+2
|\ | | | | Use title case instead of uppercase for Vulkan Intel GPU detection
| * Use title case instead of uppercase for Vulkan Intel GPU detectionHugo Locurcio2021-07-311-1/+2
| | | | | | | | | | | | This matches how the vendor name is displayed in most places. The Apple GPU vendor was also added for the M1.
* | Merge pull request #51108 from Calinou/vulkan-print-verboseRémi Verschelde2021-07-311-14/+10
|\ \ | | | | | | Move Vulkan debugging prints to verbose
| * | Move Vulkan debugging prints to verboseHugo Locurcio2021-07-311-14/+10
| |/ | | | | | | | | | | These messages can now be displayed in release builds if the `--verbose` command line argument is specified, which is useful for troubleshooting.
* / Print the Vulkan device name in release builds tooHugo Locurcio2021-07-311-2/+2
|/ | | | | | This is important information to include in bug reports for exported projects, and is consistent with the behavior found in the GLES3 and GLES2 renderers in `3.x`.
* Merge pull request #50847 from reduz/implement-binary-shader-compilationRémi Verschelde2021-07-262-109/+408
|\ | | | | Implement Binary Shader Compilation
| * Implement Binary Shader Compilationreduz2021-07-262-109/+408
| | | | | | | | | | | | | | | | | | | | * Added an extra stage before compiling shader, which is generating a binary blob. * On Vulkan, this allows caching the SPIRV reflection information, which is expensive to parse. * On other (future) RenderingDevices, it allows caching converted binary data, such as DXIL or MSL. This PR makes the shader cache include the reflection information, hence editor startup times are significantly improved. I tested this well and it appears to work, and I added a lot of consistency checks, but because it includes writing and reading binary information, rare bugs may pop up, so be aware. There was not much of a choice for storing the reflection information, given shaders can be a lot, take a lot of space and take time to parse.
* | Fix various typosluz paz2021-07-251-2/+2
|/ | | Follow-up typos found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
* Merge pull request #50809 from akien-mga/iterators-const-referencesRémi Verschelde2021-07-251-2/+2
|\
| * Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-2/+2
| |
* | Fix various typos with codespellluz paz2021-07-251-2/+2
|/ | | | Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-5/+5
|
* Fix MoltenVK static linking on macOS (add missing include path, Vulkan SDK ↵bruvzg2021-07-221-1/+1
| | | | path option, use xcframework instead of static framework).
* Fixes to forward mobilereduz2021-07-151-1/+1
| | | | | | * use valid format for framebuffer: VK_FORMAT_A2B10G10R10_UNORM_PACK32 * Unfortunately cant be used for compute. * Mobile will need to do refprobe, sky, mipmapblurring using raster.
* Use specialization constants in clustered rendererreduz2021-07-121-10/+8
| | | | | | | * Keep track of when projector, softshadow or directional sofshadow were enabled. * Enable them via specializaton constant where it makes sense. * Re-implements soft shadows. * Re-implements light projectors.
* Implement Specialization Constantsreduz2021-07-112-6/+164
| | | | | | * Added support to our local copy of SpirV Reflect (which does not support it). * Pass them on render or compute pipeline creation. * Not implemented in our shaders yet.
* Merge pull request #48622 from Geometror/reimplement-disableable-vsyncHugo Locurcio2021-07-102-11/+51
|\
| * Restructure and reimplement vsync optionsHendrik Brucker2021-07-062-11/+51
| | | | | | | | | | -Add a v-sync mode setting which allows to choose between DISABLED, ON, ADAPTIVE and MAILBOX -Removed the V-Sync via Compositor option
* | Fix material invalidation on reimport.reduz2021-07-072-0/+14
| | | | | | | | | | | | * IF a texture was reimported (calling replace as an example), it would invalidate all materials using it, causing plenty of errors. * Added the possibility to get a notification when a uniform set is erased. * With this notification, materials can be queued for update properly.
* | Fix threaded update for texturesreduz2021-07-072-5/+10
|/ | | | | * Previews and other stuff now works again. * Not the best solution, will have to be improved in the future usinc async queues where supported.
* Fix Render Inforeduz2021-07-032-6/+19
| | | | | | | | * Fixed and redone the process to obtain render information from a viewport * Some stats, such as material changes are too difficult to guess on Vulkan, were removed. * Separated visible and shadow stats, which causes confusion. * Texture, buffer and general video memory can be queried now. * Fixed the performance metrics too.
* Enum constant in boolean contextK. S. Ernest (iFire) Lee2021-06-301-1/+1
| | | error: enum constant in boolean context [-Werror=int-in-bool-context]
* Fix Context Validation Layer Errorsreduz2021-06-283-16/+58
| | | | | | | * Multisampling was wrongly selected, possibly fixes #49937 * Image semaphore acquisition is now per window, possibly fixes #41614 Please make sure to test the above two issues again, since I can't reproduce either anyway.
* Implement Framebuffer Subpass supportreduz2021-06-242-231/+659
| | | | | * Required for better optimizing mobile platforms * Will be used by the Vulkan mobile renderer.
* Add stereoscopic rendering through multiviewBastiaan Olij2021-06-134-14/+103
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Merge pull request #49506 from akien-mga/vulkan_prefer_discrete_gpuRémi Verschelde2021-06-111-1/+18
|\ | | | | Prefer discrete GPU over integrated one
| * Prefer discrete GPU over integrated oneBlazej Floch2021-06-111-1/+18
| | | | | | | | | | | | | | | | | | | | This unblocks launching on Linux laptops that default to the integrated GPU which can not handle Vulkan in many instances. Ideally a manual device selection, or an option for the optimal selection strategy should be provided via CLI or config, but for the time being this will unblock the Linux devs. Partially addresses #42348 and #43714
* | Style: Cleanup uses of double spaces between wordsRémi Verschelde2021-06-071-1/+1
| | | | | | | | | | Or after punctuation. Tried to leave third-party stuff alone, unless it has been heavily modified for Godot.
* | Fix typos with codespellRémi Verschelde2021-05-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.0.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear dof doubleclick fave findn GIRD leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
* | Remove debugging prints in the Linux DisplayServerHugo Locurcio2021-05-081-7/+7
| | | | | | | | | | Some Vulkan debugging prints were also changed to be printed only in verbose mode.
* | Cleanup vulkan capabilities check and add multiview checkBastiaan Olij2021-05-063-17/+89
| |
* | Tweak warning messages related to leaked RIDsHugo Locurcio2021-05-031-2/+10
| | | | | | | | | | | | - Use hardcoded pluralization for messages. - Since these messages are English-only, it's fine to hardcode it. - Use double quotes for consistency with other messages.
* | Replace remaining uses of `NULL` with `nullptr`Rémi Verschelde2021-04-291-1/+1
| | | | | | | | Follow-up to #38736 (these uses were likely added after this PR was merged).
* | Core: Drop custom `copymem`/`zeromem` definesRémi Verschelde2021-04-271-5/+5
| | | | | | | | | | | | | | | | We've been using standard C library functions `memcpy`/`memset` for these since 2016 with 67f65f66391327b2967a20a89c3627e1dd6e84eb. There was still the possibility for third-party platform ports to override the definitions with a custom header, but this doesn't seem useful anymore.
* | Validation layers on AndroidSzymon Majewski2021-04-122-67/+57
| |
* | Merge pull request #47640 from BastiaanOlij/fix_vulkan_formatRémi Verschelde2021-04-051-2/+25
|\ \ | | | | | | Chose format from supported ones that we support
| * | Chose format from supported ones that we supportBastiaan Olij2021-04-051-2/+25
| | |
* | | Style: Apply clang-tidy's `modernize-use-nullptr`Rémi Verschelde2021-04-051-1/+1
|/ /
* | Removed debug codeSzymon Majewski2021-04-011-1/+1
| |
* | Merge pull request #47283 from Panquesito7/fix_lgtm_alertsRémi Verschelde2021-03-311-3/+3
|\ \ | | | | | | fix: 3 LGTM alerts/warnings