Testing android-x86 with mesa 11.2.2, I found the Google Play crashed forever on a device with Intel Gen9 GPU (e.g., Skylake).
After analyzing, the i965 driver seems to assume irb->mt is not null. For example in brw_meta_fast_clear of brw_meta_fast_clear.c: struct intel_renderbuffer *irb = intel_renderbuffer(rb); ... if (brw->gen >= 9 && brw_format_for_mesa_format(irb->mt->format) != ^^^^^^^^^ => crashing brw->render_target_format[irb->mt->format]) clear_type = REP_CLEAR; If I added null checking to irb->mt, it fixes this crashing. However, the app still crashed at other place that accesses irb->mt similarly. (brw_draw.c line 399, gen8_surface_state.c line 432, etc) Please comment how to fix it correctly. Why irb->mt is null but the code assumes it's not? -- Chih-Wei Android-x86 project http://www.android-x86.org _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev