mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 19:08:03 +03:00
i hate this thing
This commit is contained in:
3 files changed
+74
-1
No files matched your search
@@ -482,6 +482,15 @@ static void
|
||||
crocus_query_memory_info(struct pipe_screen *pscreen,
|
||||
struct pipe_memory_info *info)
|
||||
{
|
||||
struct crocus_screen *screen = (struct crocus_screen *) pscreen;
|
||||
|
||||
const uint64_t total_kb =
|
||||
(uint64_t)screen->base.caps.video_memory * 1024;
|
||||
|
||||
info->total_device_memory = 0;
|
||||
info->avail_device_memory = 0;
|
||||
info->total_staging_memory = (uint32_t)MIN2(total_kb, UINT32_MAX);
|
||||
info->avail_staging_memory = info->total_staging_memory;
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in new issue
Block a user