mesa/st: Move the vec4 type size function into core GLSL types.
authorEric Anholt <eric@anholt.net>
Mon, 6 Jan 2020 19:37:38 +0000 (11:37 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jan 2020 23:55:00 +0000 (23:55 +0000)
commit74ee3f76deec064577b2ce33b6a7ec9828868d57
treef28104909fa0b512881acdc4746de1b76f896387
parentb807f7a43a4df6a13ec365a4c2f152a81e64731b
mesa/st: Move the vec4 type size function into core GLSL types.

The only bit that gallium varied on was handling of bindless.  We can
retain previous behavior for count_attribute_slots() by passing in
"true" (though I suspect this is just giving a silly answer to a silly
question), and delete our recursive function from mesa/st.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3297>
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h
src/compiler/nir_types.cpp
src/compiler/nir_types.h
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_types.cpp
src/mesa/state_tracker/st_glsl_types.h