gallium: Plumb through a way to disable GLSL const lowering
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 30 Aug 2019 15:57:18 +0000 (17:57 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 5 Sep 2019 10:38:46 +0000 (12:38 +0200)
commit2af431cf7fe9303bbfbd719e4612f00043583f40
tree47b24510d420f4fa65984147b7959e9fbcc1c15d
parent49503ae74e2634ebd2e0d3caa36c25ed99e19b9c
gallium: Plumb through a way to disable GLSL const lowering

For radeonsi, we will prefer the NIR pass as it'll generate better code
(some index calculation and a single load vs. a load, then index
calculation, then another load) and oftentimes NIR optimization can kick
in and make all the access indices constant.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/linker.cpp
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h
src/mesa/main/context.c
src/mesa/main/mtypes.h
src/mesa/state_tracker/st_extensions.c