mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-24 23:36:04 +00:00
feat(vkbridge): vertex attribute divisor emulation; host regression suite; dispatch/version fixes
- divisor != 1 bindings get stride 0 and are rebound per draw; d > 1 splits draws, with a BaseInstance-as-0 vertex shader variant so DXVK's SV_InstanceID stays exact - device-level dispatch never falls back to a loader trampoline (crashed in vkCmdSetLineStipple) - core commands newer than the device's version are not handed out; the app's instance version is passed through as asked (Zink 26.2 aborted on a 1.4 entry point) - run_tests.sh: smoke, bcn_check, DXVK d3d11_check, vkcube x3, gamescope+Zink, in plain and Mali-imitation modes - 14/14 pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KZqR8XUE8czvGzEpgSCVQR
This commit is contained in:
1 parent
92c94c5c15
commit
02a06bec3f
18 files changed
+1289
-734
No files matched your search
@@ -303,14 +303,14 @@ int main(int argc, char **argv)
|
||||
vkGetDeviceQueue(dev, 0, 0, &queue);
|
||||
VkCommandPoolCreateInfo pci = {VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO, NULL, 0, 0};
|
||||
vkCreateCommandPool(dev, &pci, NULL, &pool);
|
||||
float u8 = 1.5f / 255.0f;
|
||||
float u8 = 2.5f / 255.0f; /* hardware decoders round differently from bcdec by up to 2 */
|
||||
test_format(VK_FORMAT_BC1_RGBA_UNORM_BLOCK, "BC1", u8);
|
||||
test_format(VK_FORMAT_BC2_UNORM_BLOCK, "BC2", u8);
|
||||
test_format(VK_FORMAT_BC3_UNORM_BLOCK, "BC3", u8);
|
||||
test_format(VK_FORMAT_BC4_UNORM_BLOCK, "BC4 unorm", u8);
|
||||
test_format(VK_FORMAT_BC4_SNORM_BLOCK, "BC4 snorm", 1.5f / 127.0f);
|
||||
test_format(VK_FORMAT_BC4_SNORM_BLOCK, "BC4 snorm", 2.5f / 127.0f);
|
||||
test_format(VK_FORMAT_BC5_UNORM_BLOCK, "BC5 unorm", u8);
|
||||
test_format(VK_FORMAT_BC5_SNORM_BLOCK, "BC5 snorm", 1.5f / 127.0f);
|
||||
test_format(VK_FORMAT_BC5_SNORM_BLOCK, "BC5 snorm", 2.5f / 127.0f);
|
||||
test_format(VK_FORMAT_BC6H_UFLOAT_BLOCK, "BC6H ufloat (all 14 modes)", 0.002f);
|
||||
test_format(VK_FORMAT_BC6H_SFLOAT_BLOCK, "BC6H sfloat (all 14 modes)", 0.002f);
|
||||
test_format(VK_FORMAT_BC7_UNORM_BLOCK, "BC7 (all 8 modes)", u8);
|
||||
|
||||
Reference in new issue
Block a user