git: openjdk/jfx-sandbox: direct3d12: 2 new changesets
duke
duke at openjdk.org
Tue Mar 4 13:02:26 UTC 2025
Changeset: 80d40820
Branch: direct3d12
Author: Lukasz Kostyra <lukasz.kostyra at oracle.com>
Date: 2025-02-25 15:20:55 +0000
URL: https://git.openjdk.org/jfx-sandbox/commit/80d4082067b33e5ea751dab20031f0c67f14f1e7
D3D12: Fix WebView issues
- D3D12RTTexture now implements ReadbackRenderTarget (as it should've in
the first place) to prevent WebView from throwing exceptions
- D3D12DescriptorHeap descriptor count increased to 512 to prevent
exhausting the Heap from available descriptors
- This is heavily tied to RTTs allocated in Prism's Vram Pool.
Sometimes Prism will flush the Pool which will free used RTTs, and
as such free space in Descriptor Heaps.
- Unfortunately this limit can still be exhausted if we allocate a lot
of very small RTTs - ideal solution would create new, larger Heaps
once existing ones are exhausted, but that's a more advanced
approach which will be done during optimization phase.
- Added DescriptorHeap::SetName() and trace logging allocations/freeing.
! modules/javafx.graphics/src/main/java/com/sun/prism/d3d12/D3D12RTTexture.java
! modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeDevice.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12DescriptorHeap.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12DescriptorHeap.hpp
Changeset: 4128b6a6
Branch: direct3d12
Author: Lukasz Kostyra <lukasz.kostyra at oracle.com>
Date: 2025-03-04 13:49:28 +0000
URL: https://git.openjdk.org/jfx-sandbox/commit/4128b6a62dcae8cc5abd0565d41e5d55853a1545
D3D12SwapChain: Fix lockResources() detecting PresentableState change
lockResources(pState) should start by checking if pState's details
changed, but instead it was checking if pState itself changed. This just
checked whether the reference is the same instead of checking if
internal parameters are different than last lockResources() call.
Fixed by changing the initial check to compare width/height as well as
render scale factors.
! modules/javafx.graphics/src/main/java/com/sun/prism/d3d12/D3D12SwapChain.java
More information about the openjfx-changes
mailing list