v0.0.5r4 #163
leegao
announced in
Announcements
v0.0.5r4
#163
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
See https://github.com/leegao/bionic-vulkan-wrapper/releases/tag/v0.0.4 for instructions on how to use it
Missing Feature/Extension emulation for Winlator Bionic on:
For Mali devices, be sure to:
VK_EXT_extended_dynamic_stateextension [Mali] Automatically disable extended_dynamic_state for dxvk 1.10.3 on affected Mali drivers #50Note: in Winlator CMOD, the terminal moved. You can either start the container and then find the terminal on the left-hand side menu, or you can copy
libvulkan_wrapper.sotoZ:\usr\libwithin the windows explorer.See https://github.com/user-attachments/assets/2c78d8a7-da65-48c5-a295-69fcf45f1b07 for a video tutorial (courtesy of kylinzang)
New Features in v0.0.5r4
CHECK_FOR_STRIPING)VK_EXT_extended_dynamic_stateon Mali for DXVK < 2.VK_KHR_shader_float_controlson QualcommVK_POLYGON_MODE_LINEfaking - on Mali devices that do not support it to fall back toVK_POLYGON_MODE_FILLDUMP_BCN,DUMP_SRC_BCN)VALIDATE_BCNadded to compare the output of the GPU-based BCn decoder against a reference CPU decoderCurrent staging build:
[v0.0.5r4] - Added BCn texture/decoding artifact dumping, depth-buffer reduction mode, geometry shader faking, rewrite passes for FixMaliSpecCompositeConstants and MaliAddOptimizationBarriers, option to detect and fix texture striping in Dead Space, auto disable VK_EXT_extended_dynamic_state on Mali, fix for BC4-5 causing texture banding
[v0.0.5r3] - Fixes a WSI validation error on Mali (and other) devices due to blitting
[v0.0.5r2] - Fix USE_VVL for newer Android devices, add
DUMP_BCN_ARTIFACTSfor debugging purposes that dumps all processed BCn objects[v0.0.5r1] - Add vulkan validation layer integration (and ability to add new layers between the wrapper and libvulkan.so)
[v0.0.5r0] - Initial ClipDistance emulation, more complete cpu/gpu side decompression format support, more debugging tools
[v0.0.4r9] - Fixes a compute shader bug for some Mali drivers (can use bcn decoding without USE_CPU_BCN), thanks to Ahmed for helping debug #99
[v0.0.4r8] - Fixes USE_CPU_BCN problem in 4r7
[v0.0.4r7] - Adds GPU fault reporting dumps
[v0.0.4r6] - Reverts a buggy implementation of the inter-buffer GC, and various other improvements / refactorings
[v0.0.4r5] - Fixes a race condition, exposes more error logs from vulkan trace failures
[v0.0.4r4] - Reworked temporary object tracking to be tracked by a secondary command buffer, should reduce memory usage. Added watermarker and mask coloring for debugging. Added more feature faking for G57 r32p1.
[v0.0.4r3] - Reworked temporary object tracking to be tracked by the image, should reduce memory usage slightly, will change this to a thread soon. Also added debug color for buffer overflows in the shader (bright pixel), and fixed GPU faults for BC6 as well
[v0.0.4r2] - Make untracked buffers a non-fatal error, we may be leaking internal/staging vkBuffers out (e.g. WSI did have issues with incomplete buffer tracking too in the past) See #45
[v0.0.4r1] - Fix for GPU faults on BC7 due to register pressure, and add dualSrcBlend as a faked feature for Mali G715 on r38p1. See #43
New Environment Variables:
MASK_BCN- can be a list ofall,bc1, ...,bc7,131, ...,146- skip BCn compute for select BC texture types (to debug GPU faults/hangs)WATERMARK_BCN- can be a list ofall,bc1, ...,bc7,131, ...,146- mark the bottom 32x32 block of pixels for every texture of this type with a solid color (to debug texture faults)USE_CPU_BCN- can be a list ofall,bc1, ...,bc7,131, ...,146- use CPU decoding for the selected formats instead of compute (if your game is hanging, try this)DISABLE_BCN- disable BCn emulation for specific texture formats (all,bc1...bc7, ...)WATERMARK_SIZE- how big the WATERMARK_BCN mark should be, fromXXS...S,M,L, ...XXLNO_BCN_EMULATION- Disable the BCn emulation path completelyNO_BC123_EMULATION- Disable the BC1-BC3 emulation path completelyLOG_DISASSEMBLY- Enables logging of transformed spirv codeDISABLE_EXTERNAL_FD- For some games that tries to import external fd, it may fail on Proton for certain underlying drivers. This flag will disable this path in dxvk.FORCE_CLIP_DISTANCE- enable ClipDistance emulation even when the underlying driver supports itDISABLE_CLIP_DISTANCE- disable ClipDistance emulation even when the underlying driver does not support itWRAPPER_ONE_BY_ONE- submits bcn tasks to the GPU one by one instead of inlined into the application's command buffer. Helps isolate which specific shader causes problemsUSE_VVL- make sure you also download and copy libVkLayer_khronos_validation.so into usr/lib as well, this will toggle on the Vulkan Validation layerDUMP_BCN_ARTIFACTS- dumps every decoded texture to a/sdcard/Documents/Wrapper/artifacts_...directory. This is extremely slow and creates lots of really large files. Use only when asked to.(new)
DUMP_BCN- Dump artifacts for successfully decoded BCn textures to/sdcard/Documents/Wrapper/artifacts.... This can be a list ofall,bc1, ...,bc7. This is very slow and generates large files.VALIDATE_BCN- Enables validation of GPU vs. CPU BCn decoding. Dumps artifacts only on a mismatch. Accepts the same format list asDUMP_BCN.DUMP_SRC_BCN- Dumps the original, compressed source buffer and region info before any decoding is attempted. Useful for debugging corrupted source textures.WRAPPER_REDUCE_DEPTH_FORMAT- Reduces the precision of depth/stencil formats to improve compatibility.safe: Reduces D24/D32 formats to D16 variants while preserving the stencil buffer if possible.aggressive: Reduces all D24/D32/D16S8 formats to D16, discarding the stencil buffer.disabled: Blocks the creation of depth/stencil images entirely for debugging purposes.DISABLE_SPEC_COMPOSITE_CONSTANTS/FORCE_SPEC_COMPOSITE_CONSTANTS- Disables/forces the SPIR-V pass that fixes specialization composite constant issues on Mali GPUs that causes 1.7.3 to black screen.DISABLE_OPTIMIZATION_BARRIERS/FORCE_OPTIMIZATION_BARRIERS- Disables/forces the SPIR-V pass that adds optimization barriers for Mali/Adreno drivers.CHECK_FOR_STRIPING- Set to1to enable the detection of striped BCn textures (for Dead Space for e.g.), note that this forces a CPU decoding path.Logging Instructions:
Validation Logs:
/sdcard/Documents/WrapperUSE_VVL(upper case) to1/sdcard/Documents/Wrapper/vvl_*.txtand upload them hereWrapper Logs:
/sdcard/Documents/WrapperWRAPPER_LOG_LEVEL(upper case) todebug(small case - NOTE: do not set toallas this can generate several gbs of logs)LOG_DISASSEMBLYto1/sdcard/Documents/Wrapper/wrapper_*.txtand upload them hereSee https://photos.app.goo.gl/6Ah6EkkjQpR2Rsih8
DXVK Logs:
DXVK_LOG_LEVEL(upper case) todebug(small case)DXVK_LOG_PATH(upper case) set to/sdcard/DownloadRun the game, then go to your Files app, go into Internal storage > Download, and look for
$GAME_d3d11.logand upload it as wellWine Logs:
+button and also selectvulkanand all of thed3d...entries too/sdcard/Download/Winlator/logsSee https://photos.app.goo.gl/HQunEv1is28vRT9v6
BCn Artifacts:
/sdcard/Documents/WrapperDUMP_BCN_ARTIFACTS(upper case) to1/sdcard/Documents/Wrapper/artifacts_...directory and upload itDon't forget to set your video memory to the maximum: https://photos.app.goo.gl/53rAyWAZBEq75UxB8
What's Changed
Full Changelog: v0.0.5r3...v0.0.5r4
This discussion was created from the release v0.0.5r4.
Beta Was this translation helpful? Give feedback.
All reactions