intel_gpu_drv: fix build errors with -std=gnu++20

Fixes #4883
This commit is contained in:
Christian Prochaska
2023-05-16 07:41:09 +02:00
committed by Christian Helmuth
parent 74734b7dd9
commit b696439a67
3 changed files with 23 additions and 27 deletions

View File

@ -472,10 +472,8 @@ struct Igd::Device
template <typename CONTEXT>
struct Engine
{
enum {
CONTEXT_PAGES = CONTEXT::CONTEXT_PAGES,
RING_PAGES = CONTEXT::RING_PAGES,
};
static constexpr size_t CONTEXT_PAGES = CONTEXT::CONTEXT_PAGES;
static constexpr size_t RING_PAGES = CONTEXT::RING_PAGES;
Ggtt_map_memory ctx; /* context memory */
Ggtt_map_memory ring; /* ring memory */