diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-03-31 19:06:05 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-04-03 15:21:30 +0000 |
commit | 138865e676866c352a9ed7b4f021ee895b035ca0 (patch) | |
tree | 0ac277c36e5c24f136741fa72f9f54b5010c1e17 /src/gallium/drivers/panfrost/pan_screen.c | |
parent | 43db0632e7dea4339bbfc05caf9f5165ee8329a2 (diff) |
panfrost: Remove support for legacy kernels
Previously, there was minimal support for interoperating with legacy
kernels (reusing kernel modules originally designed for proprietary
legacy userspaces, rather than for upstream-friendly free software
stacks). Now that the Panfrost kernel is stabilising, this commit drops
the legacy code path.
Panfrost users need to use a modern, mainline kernel supporting the
Panfrost kernel driver from this commit forward.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_screen.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_screen.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 682eb37f5c7..71c6175d069 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -63,7 +63,6 @@ DEBUG_GET_ONCE_FLAGS_OPTION(pan_debug, "PAN_MESA_DEBUG", debug_options, 0) int pan_debug = 0; struct panfrost_driver *panfrost_create_drm_driver(int fd); -struct panfrost_driver *panfrost_create_nondrm_driver(int fd); const char *pan_counters_base = NULL; @@ -549,7 +548,7 @@ panfrost_screen_get_compiler_options(struct pipe_screen *pscreen, } struct pipe_screen * -panfrost_create_screen(int fd, struct renderonly *ro, bool is_drm) +panfrost_create_screen(int fd, struct renderonly *ro) { struct panfrost_screen *screen = CALLOC_STRUCT(panfrost_screen); @@ -567,16 +566,7 @@ panfrost_create_screen(int fd, struct renderonly *ro, bool is_drm) } } - if (is_drm) { - screen->driver = panfrost_create_drm_driver(fd); - } else { -#ifdef PAN_NONDRM_OVERLAY - screen->driver = panfrost_create_nondrm_driver(fd); -#else - fprintf(stderr, "Legacy (non-DRM) operation requires out-of-tree overlay\n"); - return NULL; -#endif - } + screen->driver = panfrost_create_drm_driver(fd); /* Dump memory and/or performance counters iff asked for in the environment */ const char *pantrace_base = getenv("PANTRACE_BASE"); |