iris/program: Don't try to push ubo ranges for compute
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 18 Sep 2018 21:23:58 +0000 (14:23 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
commitea416d0b5dc6907045d55bc1074d4908a04d2ad3
tree0b6efb3329dd0e0efdf09c853473df6bcaa10429
parentc7cfa4000fcef12ef0e5a2394d8780ae4112a800
iris/program: Don't try to push ubo ranges for compute

We only can push constants for compute shaders from one range.

Gallium glsl-to-nir (src/mesa/state_tracker/st_glsl_to_nir.cpp) lowers
all uniform accesses to a ubo.

Unfortunately we also load the subgroup-id as a uniform in the
compiler. Since we use the 1 push range for this subgroup-id, we then
lose the ability to actually push the ubo with all the normal user
uniform values.

In other words, there is lots of room for performance improvement, but
at least retrieving the uniforms as pull-constants is functional for
now.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/iris/iris_program.c