From 163655b33e02b6e151728fe18554a0d1fea5236c Mon Sep 17 00:00:00 2001 From: Caio Marcelo de Oliveira Filho Date: Mon, 18 Mar 2019 14:26:52 -0700 Subject: [PATCH] mesa: Extension boilerplate for NV_compute_shader_derivatives Reviewed-by: Ian Romanick --- src/compiler/glsl/glsl_parser_extras.cpp | 1 + src/compiler/glsl/glsl_parser_extras.h | 2 ++ src/mesa/main/extensions_table.h | 1 + src/mesa/main/mtypes.h | 1 + 4 files changed, 5 insertions(+) diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index f2bf9cad16b..d59cf8e53a4 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -734,6 +734,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = { EXT(INTEL_conservative_rasterization), EXT(INTEL_shader_atomic_float_minmax), EXT(MESA_shader_integer_functions), + EXT(NV_compute_shader_derivatives), EXT(NV_fragment_shader_interlock), EXT(NV_image_formats), EXT(NV_shader_atomic_float), diff --git a/src/compiler/glsl/glsl_parser_extras.h b/src/compiler/glsl/glsl_parser_extras.h index f404efd9610..295612e9aed 100644 --- a/src/compiler/glsl/glsl_parser_extras.h +++ b/src/compiler/glsl/glsl_parser_extras.h @@ -842,6 +842,8 @@ struct _mesa_glsl_parse_state { bool INTEL_shader_atomic_float_minmax_warn; bool MESA_shader_integer_functions_enable; bool MESA_shader_integer_functions_warn; + bool NV_compute_shader_derivatives_enable; + bool NV_compute_shader_derivatives_warn; bool NV_fragment_shader_interlock_enable; bool NV_fragment_shader_interlock_warn; bool NV_image_formats_enable; diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h index f7eb62108f2..549676a053d 100644 --- a/src/mesa/main/extensions_table.h +++ b/src/mesa/main/extensions_table.h @@ -356,6 +356,7 @@ EXT(MESA_ycbcr_texture , MESA_ycbcr_texture EXT(NVX_gpu_memory_info , NVX_gpu_memory_info , GLL, GLC, x , x , 2013) EXT(NV_blend_square , dummy_true , GLL, x , x , x , 1999) +EXT(NV_compute_shader_derivatives , NV_compute_shader_derivatives , GLL, GLC, x , 32, 2018) EXT(NV_conditional_render , NV_conditional_render , GLL, GLC, x , ES2, 2008) EXT(NV_conservative_raster , NV_conservative_raster , GLL, GLC, ES1, ES2, 2015) EXT(NV_conservative_raster_dilate , NV_conservative_raster_dilate , GLL, GLC, ES1, ES2, 2015) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 1f70f048bd3..d024d2a39fe 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -4332,6 +4332,7 @@ struct gl_extensions GLboolean EXT_shader_framebuffer_fetch_non_coherent; GLboolean MESA_shader_integer_functions; GLboolean MESA_ycbcr_texture; + GLboolean NV_compute_shader_derivatives; GLboolean NV_conditional_render; GLboolean NV_fill_rectangle; GLboolean NV_fog_distance; -- 2.30.2