mesa: Extension boilerplate for NV_compute_shader_derivatives
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 18 Mar 2019 21:26:52 +0000 (14:26 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 9 Apr 2019 02:29:32 +0000 (19:29 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h
src/mesa/main/extensions_table.h
src/mesa/main/mtypes.h

index f2bf9cad16bc23b4938a4d1343aa3b90e079029b..d59cf8e53a479bc5fac517ea9d5465fb3379e724 100644 (file)
@@ -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),
index f404efd9610977f90a0b1e6c42a9053443fd159b..295612e9aed299da4523fc547908f153024f0405 100644 (file)
@@ -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;
index f7eb62108f2cd5ab734f89c0c04f05d8dbed90a0..549676a053d99bef61b5f761207aa063436b0af1 100644 (file)
@@ -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)
index 1f70f048bd3a19f9b0b254d98353b7fb65931db6..d024d2a39fecc443786b8ae61e8df64bcdbc6c83 100644 (file)
@@ -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;