Skip to content

[DirectX] Validation error: Access to out-of-bounds memory is disallowed #140417

Open
@farzonl

Description

@farzonl

Error Test case:

lldb -- dxv validation/GemmSmallGemm_Bias_float_b16c32.dat

Validation error in: hlsl::ValidateFunctionBody

https://github.com/microsoft/DirectXShaderCompiler/blob/adffd31eb02f690d9d1afe86c7fa6f12b4e70aa1/lib/DxilValidation/DxilValidation.cpp#L3426

Erroring instruction:

%63 = getelementptr inbounds [512 x float], [512 x float] addrspace(3)* %62, i32 1

This is a little weird index 1 should not be out of bounds.
The only unique difference I see from ValidationTest is we don't do addrspace(3) in the ValidationTest.
https://github.com/microsoft/DirectXShaderCompiler/blob/adffd31eb02f690d9d1afe86c7fa6f12b4e70aa1/tools/clang/unittests/HLSL/ValidationTest.cpp#L1678

Metadata

Metadata

Assignees

Type

Projects

Status

Planning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions