st/mesa: simplify st_init_limits() via tgsi_processor_to_shader_stage
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 15 Mar 2018 12:51:03 +0000 (12:51 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 16 Mar 2018 13:49:16 +0000 (13:49 +0000)
commit3a9fb4f7ad6de14b5560b85d5f1c723d0555a49b
tree884a43f1fa749a052a3663f138e82fce8ae84e5e
parentf7f95310f0ac3a89419c866caf962c17ea1d599d
st/mesa: simplify st_init_limits() via tgsi_processor_to_shader_stage

Reuse the tgis helper and remove a bunch of duplicated code.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_extensions.c