winsys/radeon: initialize pte_fragment_size
authorMarek Olšák <marek.olsak@amd.com>
Fri, 27 Dec 2019 23:02:33 +0000 (18:02 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 31 Dec 2019 01:20:59 +0000 (20:20 -0500)
Cc: 19.2 19.3 <mesa-stable@lists.freedesktop.org>
Closes: #2179
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c

index 0a4da02262e8a85c76e7bb02cb552553d1f3f467..31a6758fe905f750c7ca0cd5875c460439602ae9 100644 (file)
@@ -946,6 +946,7 @@ radeon_drm_winsys_create(int fd, const struct pipe_screen_config *config,
 
     /* TTM aligns the BO size to the CPU page size */
     ws->info.gart_page_size = sysconf(_SC_PAGESIZE);
+    ws->info.pte_fragment_size = 64 * 1024; /* GPUVM page size */
 
     if (ws->num_cpus > 1 && debug_get_option_thread())
         util_queue_init(&ws->cs_queue, "rcs", 8, 1, 0);