intel/fs/xe2+: Add comment reminding us to take advantage of the 32 SBID tokens.

The additional SBID tokens will be useful when large GRF mode is implemented.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25514>
This commit is contained in:
Francisco Jerez 2022-02-19 01:38:56 -08:00
parent 15d6c6ab11
commit 9e446c9282

View file

@ -1227,7 +1227,10 @@ namespace {
{
/* XXX - Use bin-packing algorithm to assign hardware SBIDs optimally in
* shaders with a large number of SEND messages.
*
* XXX - Use 32 SBIDs on Xe2+ while in large GRF mode.
*/
const unsigned num_sbids = 16;
/* Allocate an unordered dependency ID to hardware SBID translation
* table with as many entries as instructions there are in the shader,
@ -1246,7 +1249,7 @@ namespace {
const dependency &dep = deps0[ip][i];
if (dep.unordered && ids[dep.id] == ~0u)
ids[dep.id] = (next_id++) & 0xf;
ids[dep.id] = (next_id++) & (num_sbids - 1);
add_dependency(ids, deps1[ip], dep);
}