shader: Emulate 64-bit integers when not supported

Useful for mobile and Intel Xe devices.
This commit is contained in:
ReinUsesLisp 2021-06-23 01:39:21 -03:00 committed by ameerj
parent d8d5501459
commit fb166b5ff4
6 changed files with 16 additions and 2 deletions

View file

@ -154,6 +154,9 @@ IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool, ObjectPool<IR::Blo
if (!host_info.support_float16) {
Optimization::LowerFp16ToFp32(program);
}
if (!host_info.support_int64) {
Optimization::LowerInt64ToInt32(program);
}
Optimization::SsaRewritePass(program);
Optimization::GlobalMemoryToStorageBufferPass(program);