[Pkg-Mali-devel] Updating mali-midgard to build against Linux 4.18

Rohan Garg rohan at garg.io
Fri Dec 14 19:57:29 GMT 2018


Hi
I've been working on getting the graphics stack up on the Firefly
RK3399 (AIO3399J variant) and have made some pretty significant
progress so far. I've filed [1] as a starting point to get the DKMS
module building on Debian.

A couple of other things will need to fall into place so that the X11
graphics stack can be bought up. These are (in order):

* The Firefly RK3399 DTB needs to be adjusted to enable the Mali GPU
* Mali T86x OpenGL libs need to be packaged from here [2]
* Perhaps the most non trivial of them all, changes to Xserver in
order to utilise libMali. I've started on that here [3] and with some
help from the Xorg developers and going through rockchip's own changes
to xserver, have managed to get es2gears running at 60 FPS.

Here's the output from es2_info in case anyone is interested:

EGL_VERSION: 1.4 Midgard-"r14p0-01rel0"
EGL_VENDOR: ARM
EGL_EXTENSIONS:
   EGL_KHR_image_pixmap, EGL_KHR_partial_update, EGL_KHR_config_attribs,
   EGL_KHR_image, EGL_KHR_image_base, EGL_KHR_fence_sync, EGL_KHR_wait_sync,
   EGL_KHR_gl_colorspace, EGL_KHR_get_all_proc_addresses,
   EGL_IMG_context_priority, EGL_ARM_pixmap_multisample_discard,
   EGL_KHR_gl_texture_2D_image, EGL_KHR_gl_renderbuffer_image,
   EGL_KHR_create_context, EGL_KHR_surfaceless_context,
   EGL_KHR_gl_texture_cubemap_image, EGL_EXT_create_context_robustness,
   EGL_KHR_cl_event2
EGL_CLIENT_APIS: OpenGL_ES
GL_VERSION: OpenGL ES 3.2
v1.r14p0-01rel0-git(966ed26).f44c85cb3d2ceb87e8be88e7592755c3
GL_RENDERER: Mali-T860
GL_EXTENSIONS:
   GL_ARM_rgba8, GL_ARM_mali_shader_binary, GL_OES_depth24,
   GL_OES_depth_texture, GL_OES_depth_texture_cube_map,
   GL_OES_packed_depth_stencil, GL_OES_rgb8_rgba8, GL_EXT_read_format_bgra,
   GL_OES_compressed_paletted_texture, GL_OES_compressed_ETC1_RGB8_texture,
   GL_OES_standard_derivatives, GL_OES_EGL_image, GL_OES_EGL_image_external,
   GL_OES_EGL_image_external_essl3, GL_OES_EGL_sync, GL_OES_texture_npot,
   GL_OES_vertex_half_float, GL_OES_required_internalformat,
   GL_OES_vertex_array_object, GL_OES_mapbuffer,
   GL_EXT_texture_format_BGRA8888, GL_EXT_texture_rg,
   GL_EXT_texture_type_2_10_10_10_REV, GL_OES_fbo_render_mipmap,
   GL_OES_element_index_uint, GL_EXT_shadow_samplers,
   GL_OES_texture_compression_astc, GL_KHR_texture_compression_astc_ldr,
   GL_KHR_texture_compression_astc_hdr,
   GL_KHR_texture_compression_astc_sliced_3d, GL_KHR_debug,
   GL_EXT_occlusion_query_boolean, GL_EXT_disjoint_timer_query,
   GL_EXT_blend_minmax, GL_EXT_discard_framebuffer,
   GL_OES_get_program_binary, GL_OES_texture_3D, GL_EXT_texture_storage,
   GL_EXT_multisampled_render_to_texture, GL_OES_surfaceless_context,
   GL_OES_texture_stencil8, GL_EXT_shader_pixel_local_storage,
   GL_ARM_shader_framebuffer_fetch,
   GL_ARM_shader_framebuffer_fetch_depth_stencil, GL_ARM_mali_program_binary,
   GL_EXT_sRGB, GL_EXT_sRGB_write_control, GL_EXT_texture_sRGB_decode,
   GL_KHR_blend_equation_advanced, GL_KHR_blend_equation_advanced_coherent,
   GL_OES_texture_storage_multisample_2d_array, GL_OES_shader_image_atomic,
   GL_EXT_robustness, GL_EXT_draw_buffers_indexed,
   GL_OES_draw_buffers_indexed, GL_EXT_texture_border_clamp,
   GL_OES_texture_border_clamp, GL_EXT_texture_cube_map_array,
   GL_OES_texture_cube_map_array, GL_OES_sample_variables,
   GL_OES_sample_shading, GL_OES_shader_multisample_interpolation,
   GL_EXT_shader_io_blocks, GL_OES_shader_io_blocks,
   GL_EXT_tessellation_shader, GL_OES_tessellation_shader,
   GL_EXT_primitive_bounding_box, GL_OES_primitive_bounding_box,
   GL_EXT_geometry_shader, GL_OES_geometry_shader,
   GL_ANDROID_extension_pack_es31a, GL_EXT_gpu_shader5, GL_OES_gpu_shader5,
   GL_EXT_texture_buffer, GL_OES_texture_buffer, GL_EXT_copy_image,
   GL_OES_copy_image, GL_EXT_color_buffer_half_float,
   GL_EXT_color_buffer_float, GL_EXT_YUV_target, GL_OVR_multiview,
   GL_OVR_multiview2, GL_OVR_multiview_multisampled_render_to_texture,
   GL_KHR_robustness, GL_KHR_robust_buffer_access_behavior,
   GL_EXT_draw_elements_base_vertex, GL_OES_draw_elements_base_vertex

Cheers
Rohan Garg

[1] https://salsa.debian.org/wookey/mali-midgard/merge_requests/1
[2] https://github.com/rockchip-linux/libmali
[3] https://gitlab.freedesktop.org/shadeslayer/xserver/tree/server-1.20-branch



More information about the pkg-mali-devel mailing list