Commit f24f8300 authored by Yusuf Khan's avatar Yusuf Khan
Browse files

tegra: remove get_dmabuf_modifier_planes



If a function is registered for this we will use util_format_get_num_planes
instead of its designated fallback since nvc0 doesnt have a need
for get_dmabuf_modifier_planes.

Signed-off-by: Yusuf Khan's avatarYusuf Khan <yusisamerican@gmail.com>
parent 3570e94b
Pipeline #721390 waiting for manual action with stages
in 7 seconds
......@@ -537,18 +537,6 @@ tegra_screen_is_dmabuf_modifier_supported(struct pipe_screen *pscreen,
format, external_only);
}
static unsigned int
tegra_screen_get_dmabuf_modifier_planes(struct pipe_screen *pscreen,
uint64_t modifier,
enum pipe_format format)
{
struct tegra_screen *screen = to_tegra_screen(pscreen);
return screen->gpu->get_dmabuf_modifier_planes ?
screen->gpu->get_dmabuf_modifier_planes(screen->gpu, modifier, format) :
util_format_get_num_planes(format);
}
static struct pipe_memory_object *
tegra_screen_memobj_create_from_handle(struct pipe_screen *pscreen,
struct winsys_handle *handle,
......@@ -628,7 +616,6 @@ tegra_screen_create(int fd)
screen->base.resource_create_with_modifiers = tegra_screen_resource_create_with_modifiers;
screen->base.query_dmabuf_modifiers = tegra_screen_query_dmabuf_modifiers;
screen->base.is_dmabuf_modifier_supported = tegra_screen_is_dmabuf_modifier_supported;
screen->base.get_dmabuf_modifier_planes = tegra_screen_get_dmabuf_modifier_planes;
screen->base.memobj_create_from_handle = tegra_screen_memobj_create_from_handle;
return &screen->base;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment