halide / Halide

a language for fast, portable data-parallel computation
https://halide-lang.org
Other
5.78k stars 1.07k forks source link

[vulkan] camera_pip generates invalid initialization for short constant #8292

Open derek-gerstmann opened 2 weeks ago

derek-gerstmann commented 2 weeks ago
./VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ./camera_pipe/camera_pipe_process ./camera_pipe/bayer_raw.png 3700 2.0 50 1.0 5 out.png
input: ./camera_pipe/bayer_raw.png
       2592 1968
UNASSIGNED-CoreValidation-Shader-InconsistentSpirv(ERROR / SPEC): msgNum: 7060244 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object 0: handle = 0x135854618, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x6bbb14 | SPIR-V module not valid: The high-order bits of a literal number in instruction <id> 1786 must be 0 for a floating-point type, or 0 for an integer type with Signedness of 0, or sign extended when Signedness is 1
  %short_65535 = OpConstant %short 65535