diff options
author | Alejandro Piñeiro <[email protected]> | 2017-10-10 16:09:25 +0200 |
---|---|---|
committer | Alejandro Piñeiro <[email protected]> | 2019-07-17 10:41:44 +0200 |
commit | a622aad869abe0413cb034a39b464a3c76b332d1 (patch) | |
tree | 5816e68409d278c79f61286af89f45365db78de1 /src/mesa/main/spirv_extensions.c | |
parent | 07ff367442d52b301e05f9c4ff6d03b04ee703c1 (diff) |
spirv_extensions: add GL_ARB_spirv_extensions boilerplate
v2:
* Mention extension gap at gl_API.xml (Emil Velikov)
* Bail with INVALID_ENUM if extension not available on getStringi (Emil Velikov)
* Use EXTRA_EXT macro when defining the extension at
get.c/get_hash_params.py (Emil Velikov)
* Rename source files (spirvextensions.[ch] -> spirv_extensions.[ch]) (Ian)
v3:
* Fix GL_PROGRAM_BINARY_FORMATS glGet query, broken by error on a
previous rebase
v4:
* Fix rebase conflicts on getstring.c after
GL_SHADING_LANGUAGE_VERSION query was added
v5:
* Remove src/mapi/glapi/gen/Makefile.am as it no longer exists in
master
Signed-off-by: Alejandro Piñeiro <[email protected]>
Signed-off-by: Arcady Goldmints-Orlov <[email protected]>
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/mesa/main/spirv_extensions.c')
-rw-r--r-- | src/mesa/main/spirv_extensions.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/mesa/main/spirv_extensions.c b/src/mesa/main/spirv_extensions.c new file mode 100644 index 00000000000..40a89c133aa --- /dev/null +++ b/src/mesa/main/spirv_extensions.c @@ -0,0 +1,42 @@ +/* + * Copyright © 2017 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * on the rights to use, copy, modify, merge, publish, distribute, sub + * license, and/or sell copies of the Software, and to permit persons to whom + * the Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL + * THE AUTHOR(S) AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR + * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE + * USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +/** + * \file + * \brief SPIRV-V extension handling. See ARB_spirv_extensions + */ + +#include "spirv_extensions.h" + +GLuint +_mesa_get_spirv_extension_count(struct gl_context *ctx) +{ + return 0; +} + +const GLubyte * +_mesa_get_enabled_spirv_extension(struct gl_context *ctx, + GLuint index) +{ + return (const GLubyte *) 0; +} |