shader-slang / slang

Making it easier to work with shaders
MIT License
1.78k stars 159 forks source link

CTS test failures with -emit-spirv-directly #4363

Open jkwak-work opened 3 weeks ago

jkwak-work commented 3 weeks ago

Problem description When we enabled -emit-spirv-directly as a default option, 579 CTS tests started failing. There appears to be about 6 types of problems.

  1. floating point type conversion, "dEQP-VK.glsl.builtin.precision_fconvert.*"
  2. texture size ignores LOD parameter, "dEQP-VK.glsl.texture_functions.query.texturesize.*"
  3. textureProj yields different result, "dEQP-VK.glsl.texture_functions.textureproj.*"
  4. multi-dimensional array failure, "dEQP-VK.ssbo.layout.2level", "dEQP-VK.ssbo.layout.3level"
  5. unsized array failure, "dEQP-VK.ssbo.layout.basic_unsized_array*"
  6. issues with basic types.

Note that all of the tests above pass when ran with an option, -emit-spirv-via-glsl.

Goal We need to investigate the failing tests and file issues for each. And re-enable the CTS tests when the issues are resolved.

Attachment The list of failing tests are attached, failing.txt