mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
committed by
Compute-Runtime-Automation
parent
9882b6437d
commit
1716542529
2
third_party/aub_stream/.version
vendored
2
third_party/aub_stream/.version
vendored
@@ -1 +1 @@
|
||||
git_revision: da725f64d9894db03b4595c0b521e12fa3a5978b
|
||||
git_revision: 5b88a8fdb768744d8533f007b2013236e72a6490
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
namespace aub_stream {
|
||||
|
||||
struct HardwareContext;
|
||||
struct CreateHardwareContext2Params;
|
||||
|
||||
struct AubManagerOptions {
|
||||
uint32_t version{};
|
||||
@@ -71,6 +72,7 @@ class AubManager {
|
||||
virtual void blockMemWritesViaTbx(bool onoff) {}
|
||||
|
||||
virtual bool releaseHardwareContext(HardwareContext *context) { return false; };
|
||||
virtual HardwareContext *createHardwareContext2(const CreateHardwareContext2Params ¶ms, uint32_t device, uint32_t engine, uint32_t flags) { return nullptr; };
|
||||
};
|
||||
|
||||
} // namespace aub_stream
|
||||
|
||||
10
third_party/aub_stream/aubstream/aubstream.h
vendored
10
third_party/aub_stream/aubstream/aubstream.h
vendored
@@ -98,6 +98,16 @@ constexpr uint32_t highPriority = 1 << 14;
|
||||
constexpr uint32_t lowPriority = 1 << 13;
|
||||
} // namespace hardwareContextFlags
|
||||
|
||||
namespace hardwareContextId {
|
||||
constexpr uint32_t invalidContextId = -1;
|
||||
}
|
||||
|
||||
struct CreateHardwareContext2Params {
|
||||
uint32_t contextId;
|
||||
uint32_t primaryContextId = hardwareContextId::invalidContextId;
|
||||
};
|
||||
|
||||
static_assert(std::is_pod<SurfaceInfo>::value, "SurfaceInfo is not POD type");
|
||||
static_assert(std::is_standard_layout_v<CreateHardwareContext2Params>, "CreateHardwareContext2Params is not standard layout type");
|
||||
|
||||
} // namespace aub_stream
|
||||
|
||||
Reference in New Issue
Block a user