halide / Halide

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

[vulkan] hist_filter generates invalid index pair #8293

Open derek-gerstmann opened 3 months ago

derek-gerstmann commented 3 months ago
./VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ./hist/hist_filter ./hist/rgba.png out.png                                             
UNASSIGNED-CoreValidation-Shader-InconsistentSpirv(ERROR / SPEC): msgNum: 7060244 - Validation Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object 0: handle = 0x13a042218, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x6bbb14 | SPIR-V module not valid: Structure id 490 decorated as BufferBlock for variable in Uniform storage class must follow relaxed storage buffer layout rules: member 0 contains an array with stride 4 not satisfying alignment to 8
  %k8_buffer_block1 = OpTypeStruct %_runtimearr_v2int

    Objects: 1
        [0] 0x13a042218, type: 3, name: NULL
[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
program_source:183:57: error: member reference base type 'device int' is not a structure or union
    k8_cdf_global_wrapper_0_0[_543.x] = k8_cdf._m0[_537].x;
                                        ~~~~~~~~~~~~~~~~^~
program_source:184:57: error: member reference base type 'device int' is not a structure or union
    k8_cdf_global_wrapper_0_0[_543.y] = k8_cdf._m0[_537].y;
                                        ~~~~~~~~~~~~~~~~^~