git: openjdk/jfx-sandbox: direct3d12: Further improve clear opts

duke duke at openjdk.org
Tue Feb 10 13:31:50 UTC 2026


Changeset: cc5a72e1
Branch: direct3d12
Author:    Lukasz Kostyra <lukasz.kostyra at oracle.com>
Date:      2026-02-10 13:06:31 +0000
URL:       https://git.openjdk.org/jfx-sandbox/commit/cc5a72e130156f9f245d0232ae938644bb2e9c61

Further improve clear opts

- Removed the previous clear opt fix where Shaders would disallow Clear
  opts; it was hacky and the problem had to be tackled in a better way.
- Moved code merging Dirty BBoxes during Draw to IRenderTarget.cpp; that
  way the process to update the BBox can be a bit more complex without
  making RC::Draw() messier.
- Added states of BBox tracking to IRenderTarget
- BBox tracking can now be disabled temporarily until next frame. This
  is to prevent Clear opts from triggering when RTT is dirtied in a more
  complex way than just by quads, which can cause inconsistencies in
  tracking.
- Some new inconsistencies with temporary RTTs being incorrectly
  overdrawn were fixed.

! modules/javafx.graphics/src/main/native-prism-d3d12/D3D12Common.hpp
! modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeDevice.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeRenderTarget.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/D3D12NativeSwapChain.cpp
+ modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12IRenderTarget.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12IRenderTarget.hpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12PSOManager.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12RenderingContext.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12Shader.cpp
! modules/javafx.graphics/src/main/native-prism-d3d12/Internal/D3D12Shader.hpp



More information about the openjfx-changes mailing list