mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #1417] vk_image_fuzz: enable shaderDrawParameters for the translated vertex shader #1446
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1446
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1417
Author: @whoalin1
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:vk-image-fuzz-drawparams📝 Commits (1)
285801fvk_image_fuzz: enable shaderDrawParameters for the translated vertex shader📊 Changes
1 file changed (+9 additions, -0 deletions)
View changed files
📝
runtime/test/vk_image_fuzz.cpp(+9 -0)📄 Description
Claimed in the coordination issue: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7147754867
What
Every translated vertex shader declares the SPIR-V
DrawParameterscapability (BaseVertex/BaseInstance for the zero-based v0/v3 inputs), butvk_image_fuzznever enabledVkPhysicalDeviceVulkan11Features::shaderDrawParameters. UnderLEONIDA_VK_VALIDATION=1,vkCreateShaderModulefails withVUID-VkShaderModuleCreateInfo-pCode-08740on every case, on both vendors — silently zeroing entireimage_fuzzcampaigns (found when a fuzz sweep's AMD image_fuzz run produced all-fail results that turned out to be this harness bug, not translator bugs). Without validation, drivers tolerate the missing feature.Fix (+9 lines, one file): query
VkPhysicalDeviceVulkan11Featureswith a separatevkGetPhysicalDeviceFeatures2call and setenable11.shaderDrawParametersin the device-creation chain (Features2 → Vulkan12Features → Vulkan11Features), matching the shape used byvk_bindless_test/vk_sampler_test.Tested
e0b08c77d):image_fuzz --seed 1first case fails on both GPUs with VUID-08740.LEONIDA_VK_VALIDATION=1+LEONIDA_PC_TAIL_UBO=1:--programs 60→ 60/60 match; seed 2--programs 30→ 30/30; 0 VUIDs.vk_bindless_testandvk_sampler_testctest entries also pass with validation on both GPUs (same chain shape already worked there).AI-assisted (Devin).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.