intel: Rename intel_compute_pixel_hash_table() to intel_compute_pixel_hash_table_3way().
For consistency with intel_compute_pixel_hash_table_nway(). Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13569>
This commit is contained in:
@@ -821,7 +821,7 @@ upload_pixel_hashing_tables(struct iris_batch *batch)
|
||||
|
||||
const bool flip = devinfo->ppipe_subslices[0] < devinfo->ppipe_subslices[1];
|
||||
struct GENX(SLICE_HASH_TABLE) table;
|
||||
intel_compute_pixel_hash_table(16, 16, 3, 3, flip, table.Entry[0]);
|
||||
intel_compute_pixel_hash_table_3way(16, 16, 3, 3, flip, table.Entry[0]);
|
||||
|
||||
GENX(SLICE_HASH_TABLE_pack)(NULL, map, &table);
|
||||
|
||||
@@ -860,16 +860,16 @@ upload_pixel_hashing_tables(struct iris_batch *batch)
|
||||
p.SliceHashControl[0] = TABLE_0;
|
||||
|
||||
if (ppipes_of[2] == 2 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 2, 2, 0, p.TwoWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 2, 2, 0, p.TwoWayTableEntry[0]);
|
||||
else if (ppipes_of[2] == 1 && ppipes_of[1] == 1 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 3, 3, 0, p.TwoWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 3, 3, 0, p.TwoWayTableEntry[0]);
|
||||
|
||||
if (ppipes_of[2] == 2 && ppipes_of[1] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 5, 4, 0, p.ThreeWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 5, 4, 0, p.ThreeWayTableEntry[0]);
|
||||
else if (ppipes_of[2] == 2 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 2, 2, 0, p.ThreeWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 2, 2, 0, p.ThreeWayTableEntry[0]);
|
||||
else if (ppipes_of[2] == 1 && ppipes_of[1] == 1 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 3, 3, 0, p.ThreeWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 3, 3, 0, p.ThreeWayTableEntry[0]);
|
||||
else
|
||||
unreachable("Illegal fusing.");
|
||||
}
|
||||
|
||||
@@ -50,9 +50,9 @@
|
||||
* pipe indices from the highest to lowest EU count.
|
||||
*/
|
||||
UNUSED static void
|
||||
intel_compute_pixel_hash_table(unsigned n, unsigned m,
|
||||
unsigned period, unsigned index, bool flip,
|
||||
uint32_t *p)
|
||||
intel_compute_pixel_hash_table_3way(unsigned n, unsigned m,
|
||||
unsigned period, unsigned index, bool flip,
|
||||
uint32_t *p)
|
||||
{
|
||||
for (unsigned i = 0; i < n; i++) {
|
||||
for (unsigned j = 0; j < m; j++) {
|
||||
|
||||
@@ -57,7 +57,7 @@ genX(emit_slice_hashing_state)(struct anv_device *device,
|
||||
const bool flip = device->info.ppipe_subslices[0] <
|
||||
device->info.ppipe_subslices[1];
|
||||
struct GENX(SLICE_HASH_TABLE) table;
|
||||
intel_compute_pixel_hash_table(16, 16, 3, 3, flip, table.Entry[0]);
|
||||
intel_compute_pixel_hash_table_3way(16, 16, 3, 3, flip, table.Entry[0]);
|
||||
|
||||
GENX(SLICE_HASH_TABLE_pack)(NULL, device->slice_hash.map, &table);
|
||||
}
|
||||
@@ -96,16 +96,16 @@ genX(emit_slice_hashing_state)(struct anv_device *device,
|
||||
p.SliceHashControl[0] = TABLE_0;
|
||||
|
||||
if (ppipes_of[2] == 2 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 2, 2, 0, p.TwoWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 2, 2, 0, p.TwoWayTableEntry[0]);
|
||||
else if (ppipes_of[2] == 1 && ppipes_of[1] == 1 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 3, 3, 0, p.TwoWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 3, 3, 0, p.TwoWayTableEntry[0]);
|
||||
|
||||
if (ppipes_of[2] == 2 && ppipes_of[1] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 5, 4, 0, p.ThreeWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 5, 4, 0, p.ThreeWayTableEntry[0]);
|
||||
else if (ppipes_of[2] == 2 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 2, 2, 0, p.ThreeWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 2, 2, 0, p.ThreeWayTableEntry[0]);
|
||||
else if (ppipes_of[2] == 1 && ppipes_of[1] == 1 && ppipes_of[0] == 1)
|
||||
intel_compute_pixel_hash_table(8, 16, 3, 3, 0, p.ThreeWayTableEntry[0]);
|
||||
intel_compute_pixel_hash_table_3way(8, 16, 3, 3, 0, p.ThreeWayTableEntry[0]);
|
||||
else
|
||||
unreachable("Illegal fusing.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user