Comment out unimplemented check
Some checks failed
codespell / Check for spelling errors (push) Successful in 9s
codespell / Check for spelling errors (pull_request) Successful in 10s
suyu-ci / Check REUSE Specification (pull_request) Successful in 9s
suyu verify / Verify Format (pull_request) Failing after 2m19s
suyu verify / test build (linux-fresh, clang) (pull_request) Has been skipped
suyu verify / test build (linux-fresh, linux) (pull_request) Has been skipped
suyu verify / android (pull_request) Has been skipped

In my testing on macOS, MK8 sometimes crashed at this function, giving a void type instead of u32.
I've temporarily commented this out until (if) this is implemented and added a check for if it is implemented
This commit is contained in:
Exverge 2024-03-30 19:34:32 -04:00
parent 48e86d6e84
commit 62f7da6c5d
Signed by: Exverge
GPG key ID: 19AAFC0AC6A9B35A

View file

@ -196,9 +196,9 @@ Id Texture(EmitContext& ctx, IR::TextureInstInfo info, [[maybe_unused]] const IR
}
Id TextureImage(EmitContext& ctx, IR::TextureInstInfo info, const IR::Value& index) {
if (!index.IsImmediate() || index.U32() != 0) {
throw NotImplementedException("Indirect image indexing");
}
//if (!index.IsImmediate() || index.Type() == Shader::IR::Type::U32 || index.U32() != 0) {
// throw NotImplementedException("Indirect image indexing");
//}
if (info.type == TextureType::Buffer) {
const TextureBufferDefinition& def{ctx.texture_buffers.at(info.descriptor_index)};
if (def.count > 1) {
@ -215,9 +215,9 @@ Id TextureImage(EmitContext& ctx, IR::TextureInstInfo info, const IR::Value& ind
}
std::pair<Id, bool> Image(EmitContext& ctx, const IR::Value& index, IR::TextureInstInfo info) {
if (!index.IsImmediate() || index.U32() != 0) {
throw NotImplementedException("Indirect image indexing");
}
//if (!index.IsImmediate() || index.Type() == Shader::IR::Type::U32 || index.U32() != 0) {
// throw NotImplementedException("Indirect image indexing");
//}
if (info.type == TextureType::Buffer) {
const ImageBufferDefinition def{ctx.image_buffers.at(info.descriptor_index)};
return {ctx.OpLoad(def.image_type, def.id), def.is_integer};