intel: fix the gen 11 compute shader scratch IDs
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 31 Jan 2020 23:51:41 +0000 (15:51 -0800)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Mar 2020 00:36:10 +0000 (00:36 +0000)
commit1efe139cad150072985db02227be947aec532e2b
tree2a331c9f2b64005df21df625656af6595914d9e8
parentd0c66869c1f9d454fc1c9adbd762a7a9b2756e86
intel: fix the gen 11 compute shader scratch IDs

Scratch space allocation is based on the number of threads in the base
configuration, and we only have one base configuration for ICL, with 8
subslices.

This fixes an issue with Aztec on Vulkan in a machine with a
configuration that's not the base. The issue looks like a regression
from b9e93db20896, but it seems things are broken since forever, just
not easily reproducible.

v2: Reimplement it using the subslices variable. Don't touch TGL.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4006>
src/gallium/drivers/iris/iris_program.c
src/intel/vulkan/anv_allocator.c
src/mesa/drivers/dri/i965/brw_program.c