mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
15d6c6ab11
commit
9e446c9282
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue