Skip to content

Commit

Permalink
create uop in spirv-1 mode for vulkan 1.0 compatibility (#3721)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Apr 20, 2022
1 parent a061871 commit 7600270
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,9 @@ const ncnn::Packing_vulkan* VulkanDevicePrivate::get_utility_operator(int storag
// enable pack8 for pack8to1/pack8to4
opt.use_shader_pack8 = true;

// do not enable spirv-1.3 from cooperative matrix
opt.use_cooperative_matrix = false;

opt.use_vulkan_compute = true;

// cache uop pipeline as device member explicitly
Expand Down Expand Up @@ -1833,6 +1836,7 @@ void VulkanDevicePrivate::destroy_utility_operator()
opt.use_vulkan_compute = true;
opt.use_fp16_arithmetic = false;
opt.use_int8_arithmetic = false;
opt.use_cooperative_matrix = false;
opt.pipeline_cache = 0;

// from buffer | image
Expand Down

0 comments on commit 7600270

Please sign in to comment.