glsl: fix and clean up NV_compute_shader_derivatives support
authorMarek Olšák <marek.olsak@amd.com>
Wed, 24 Apr 2019 17:16:07 +0000 (13:16 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 2 May 2019 20:09:24 +0000 (16:09 -0400)
commitb3a26d4628da541fe0d996303cf23c9511870f70
tree7beabb0c6d2eeaf9635e38d76e2f1579f994dbc8
parent20909284f204091757c050aa40cfffaf3f981b9c
glsl: fix and clean up NV_compute_shader_derivatives support

- make sure compute shader derivatives are exposed for all extensions
- unify duplicated code

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/glsl/builtin_functions.cpp