diff --git a/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear.glsl b/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear.glsl index 962282348d1..9750507a188 100644 --- a/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear.glsl +++ b/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear.glsl @@ -16,7 +16,8 @@ ${define_active_storage_type(STORAGE)} ${define_required_extensions(DTYPE)} -${define_required_extensions("int8")} +$if STORAGE == "buffer": + ${define_required_extensions("int8")} #include "indexing_utils.h" diff --git a/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear_optimized.glsl b/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear_optimized.glsl index dae2f7e3ab1..b8d7622f94d 100644 --- a/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear_optimized.glsl +++ b/backends/vulkan/runtime/graph/ops/glsl/q_8w_linear_optimized.glsl @@ -16,7 +16,8 @@ ${define_active_storage_type(STORAGE)} ${define_required_extensions(DTYPE)} -${define_required_extensions("int8")} +$if STORAGE == "buffer": + ${define_required_extensions("int8")} $if BATCH_MODE: