2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2023-01-24 11:15:03 +00:00
|
|
|
* Copyright (C) 2018-2023 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
2019-02-27 11:39:32 +01:00
|
|
|
|
2023-01-27 12:37:09 +00:00
|
|
|
#include "shared/source/command_stream/submission_status.h"
|
2022-11-22 13:53:59 +00:00
|
|
|
#include "shared/source/command_stream/task_count_helper.h"
|
|
|
|
|
|
2017-12-21 00:45:38 +01:00
|
|
|
#include <cstdint>
|
2022-11-22 13:53:59 +00:00
|
|
|
#include <limits>
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2022-05-17 19:04:23 +00:00
|
|
|
using FlushStamp = uint64_t;
|
2017-12-21 00:45:38 +01:00
|
|
|
struct CompletionStamp {
|
2022-11-22 13:53:59 +00:00
|
|
|
static TaskCountType getTaskCountFromSubmissionStatusError(SubmissionStatus submissionStatus);
|
2022-11-04 17:02:46 +00:00
|
|
|
|
2022-11-22 13:53:59 +00:00
|
|
|
TaskCountType taskCount;
|
|
|
|
|
TaskCountType taskLevel;
|
2017-12-21 00:45:38 +01:00
|
|
|
FlushStamp flushStamp;
|
2020-01-23 11:57:37 +01:00
|
|
|
|
2022-11-22 13:53:59 +00:00
|
|
|
static constexpr TaskCountType notReady = std::numeric_limits<TaskCountType>::max() - 0xF;
|
|
|
|
|
static constexpr TaskCountType gpuHang = std::numeric_limits<TaskCountType>::max() - 0x5;
|
|
|
|
|
static constexpr TaskCountType outOfDeviceMemory = std::numeric_limits<TaskCountType>::max() - 0x4;
|
|
|
|
|
static constexpr TaskCountType outOfHostMemory = std::numeric_limits<TaskCountType>::max() - 0x3;
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
2020-01-23 11:57:37 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|