intel/compiler: Restrict cs_threads to 64
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 24 Oct 2019 18:55:23 +0000 (11:55 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 28 Feb 2020 22:45:43 +0000 (14:45 -0800)
commitcf12faef614ab7cd9996410f1d161558a3853936
tree73966bdfcd51b53400cc40dfe6a6e663b58c89cd
parent09323634898ab3efc0150dc7d756bf36b1b89b76
intel/compiler: Restrict cs_threads to 64

Our current GPGPU_WALKER code only supports up to 64 threads.

On HSW we could use up to 70 and TGL up to 112, but only if the walker
is adjusted so the width does not exceed 64. Work to support this is
in progress.

Previous to this change, we might try to downgrade to SIMD8 if the
SIMD16 shader spilled. Since HSW and TGL have the max number of
threads above 64, we would then try to emit an invalid GPGPU walker
command.

Fixes: 932045061b5 ("i965/cs: Emit compute shader code and upload programs")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Tested-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
src/intel/compiler/brw_fs.cpp