intel/vec4: Set brw_stage_prog_data::has_ubo_pull
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 29 Oct 2019 22:28:18 +0000 (17:28 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 30 Oct 2019 16:05:57 +0000 (16:05 +0000)
commit24c0545b2d5d79132ee48643886cd3eb285beb6f
tree657bcdcae43751d5ca13bd57a8d39dc43a5b1618
parent5a9d777f5ac66fee603f19247506bcf740b39843
intel/vec4: Set brw_stage_prog_data::has_ubo_pull

In 0e4a75f917, Ken added a flag brw_stage_prog_data which indicates
whether any UBO pulls ever occur.  Unfortunately, he neglected to set
the bit in the vec4 back-end.  This was fine at the time because the
optimization was intended for iris which does not support gen7 and using
the vec4 back-end on Gen8+ requires an environment variable.  We want to
use this in Vulkan which does support Gen7 so we want the information
from the vec4 back-end as well as scalar.

Fixes: 0e4a75f917 "intel/compiler: Record whether any pull constant..."
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/compiler/brw_vec4_nir.cpp