Clarify logic of walk order values for Xe Hp and later

Related-To: NEO-6466
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-01-17 18:25:23 +00:00
committed by Compute-Runtime-Automation
parent 4238679078
commit c40153ec86

View File

@@ -329,12 +329,15 @@ bool EncodeDispatchKernel<Family>::isRuntimeLocalIdsGenerationRequired(uint32_t
//make sure table below matches Hardware Spec
constexpr uint32_t walkOrderPossibilties = 6u;
constexpr uint8_t possibleWalkOrders[walkOrderPossibilties][3] = {{0, 1, 2},
{0, 2, 1},
{1, 0, 2},
{2, 0, 1},
{1, 2, 0},
{2, 1, 0}};
constexpr uint8_t X = 0;
constexpr uint8_t Y = 1;
constexpr uint8_t Z = 2;
constexpr uint8_t possibleWalkOrders[walkOrderPossibilties][3] = {{X, Y, Z}, // 0 1 2
{X, Z, Y}, // 0 2 1
{Y, X, Z}, // 1 0 2
{Z, X, Y}, // 1 2 0
{Y, Z, X}, // 2 0 1
{Z, Y, X}}; // 2 1 0
//check if we need to follow kernel requirements
if (requireInputWalkOrder) {