spirv_extensions: define spirv_extensions_supported
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 19 Jun 2019 18:58:30 +0000 (13:58 -0500)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 17 Jul 2019 08:45:32 +0000 (10:45 +0200)
commitf6da2a55081daba10a285c2d1a77cd928ebd2854
tree679893c8bb66018a94ae6ddcb410134eeba4a8f3
parent06e5daf5758ffdc06a5a96ab0fe58552732e35d1
spirv_extensions: define spirv_extensions_supported

Add a struct to maintain which SPIR-V extensions are supported, and an
utility method to initialize it based on
nir_spirv_supported_capabilities.

v2:
  * Fixing code style (Ian Romanick)
  * Adding a prefix (spirv) to fill_supported_spirv_extensions (Ian Romanick)

v3: rebase update (nir_spirv_supported_extensions renamed)

v4: include AMD_gcn_shader support

v5: move spirv_fill_supported_spirv_extensions to
    src/mesa/main/spirv_extensions.c

Signed-off-by: Alejandro Piñeiro <apinheiro@igalia.com>
Signed-off-by: Arcady Goldmints-Orlov <agoldmints@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/mesa/main/spirv_extensions.c
src/mesa/main/spirv_extensions.h