glsl: Remove bitfield_extract and bitfield_insert lowering
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 13 Dec 2022 18:36:18 +0000 (10:36 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Jan 2023 02:37:53 +0000 (18:37 -0800)
commitf5722c4973439f8f2e53e581bdd242f6c198f6e1
tree65f2e60c980af981c7f111d8be2013a609384c92
parentdb241fbd70c59f86375b8d6bfc5b92d89f073044
glsl: Remove bitfield_extract and bitfield_insert lowering

As far as I can tell, every driver that supports GLSL 1.30 or
GL_EXT_gpu_shader4 (and therefore also enables support for
GL_MESA_shader_integer_functions) also sets some subset of the various
NIR lower_bitfield_extract and lower_bitfield_insert flags.

v2: Declaration of 'result' still needs to be added to the IR. Noticed
by marge.

v3: Fix 'git rebase --autosquash' putting the v2 fix in the wrong
place. I've never seen that happen before. :(

Reviewed-by: Emma Anholt <emma@anholt.net> [v1]
Reviewed-by: Matt Turner <mattst88@gmail.com> [v1]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20323>
src/compiler/glsl/lower_instructions.cpp