spirv: Add support for DerivativeGroup capabilities

As defined in SPV_NV_compute_shader_derivatives. These control how the
invocations are arranged in a CS when doing derivative and related
operations (which are also enabled by the extension).

Since we expect valid SPIR-V, we don't need to do more work at SPIR-V
level to enable the derivative and related operations to be called.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2019-03-28 10:23:02 -07:00
parent 956226c8ba
commit bd73531677
2 changed files with 16 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ extern "C" {
struct spirv_supported_capabilities {
bool address;
bool atomic_storage;
bool derivative_group;
bool descriptor_array_dynamic_indexing;
bool device_group;
bool draw_parameters;