GPUOpen-LibrariesAndSDKs / RadeonRays_SDK

Radeon Rays is ray intersection acceleration library for hardware and software multiplatforms using CPU and GPU
MIT License
1.07k stars 192 forks source link

compute shader is broken on latest windows build? #231

Open gamerx1221 opened 2 years ago

gamerx1221 commented 2 years ago

trying to run 4.0 and 4.1 on windows, vs 2019 and getting compute shader build issues for dx and vk. can someone verify? will it run only on specific windows target runtimes?

scene.obj is missing from repo?

gamerx1221 commented 2 years ago

get this warning on 4.0: DX12:

D3D12 WARNING: ID3D12ShaderBytecode::CreatePipelineState: Shader is corrupt or in an unrecognized format, or is not signed. Ensure that DXIL.dll is used to sign the shader. This shader and PSO containing it will not be validated. [ EXECUTION WARNING #1243: NON_RETAIL_SHADER_MODEL_WONT_VALIDATE]

VK: VUID-vkBindBufferMemory-size-01037(ERROR / SPEC): msgNum: -1888562224 - Validation Error: [ VUID-vkBindBufferMemory-size-01037 ] Object 0: handle = 0xe4607e00000000a4, type = VK_OBJECT_TYPE_BUFFER; | MessageID = 0x8f6ed3d0 | vkBindBufferMemory(): memory size minus memoryOffset is 0x2003d40 but must be at least as large as VkMemoryRequirements::size value 0x2003e00, returned from a call to vkGetBufferMemoryRequirements with buffer.

though runs fine and able to get output file on both vk and dx12

gamerx1221 commented 2 years ago

on 4.1

when running test_dx, the following error happens when calling dx::CreateIntersector

D3D12 ERROR: ID3D12Device::CreateComputeShader: Compute Shader is corrupt or in an unrecognized format.

benjamin-ts commented 3 months ago

Today I have met the same problem !! Just Update the NVIDIA driver. I think you will solve your problem . Firstly make sure these Dependencies exist. Probably the driver or hardware problem if it's not work