mesa/spirv: Set a few more extensions
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 22 Aug 2019 17:19:49 +0000 (10:19 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 10 Sep 2019 21:36:46 +0000 (14:36 -0700)
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/spirv_extensions.c

index 4dd637b6607cc3ed6f4911f175e2475304b4fa01..cc437e38b39548c8cf6d2f2791262054e9cadc79 100644 (file)
@@ -103,8 +103,11 @@ _mesa_fill_supported_spirv_extensions(struct spirv_supported_extensions *ext,
 
    ext->supported[SPV_KHR_shader_draw_parameters] = cap->draw_parameters;
    ext->supported[SPV_KHR_multiview] = cap->multiview;
+   ext->supported[SPV_KHR_storage_buffer_storage_class] = true;
    ext->supported[SPV_KHR_variable_pointers] = cap->variable_pointers;
    ext->supported[SPV_AMD_gcn_shader] = cap->amd_gcn_shader;
+   ext->supported[SPV_KHR_shader_ballot] = cap->subgroup_ballot;
+   ext->supported[SPV_KHR_subgroup_vote] = cap->subgroup_vote;
 
    for (unsigned i = 0; i < SPV_EXTENSIONS_COUNT; i++) {
       if (ext->supported[i])