kernel_optimize_test/include/drm
Ilia Mirkin c20bb155c2 drm/nouveau: prefer XBGR2101010 for addfb ioctl
Nouveau only exposes support for XBGR2101010. Prior to the atomic
conversion, drm would pass in the wrong format in the framebuffer, but
it was always ignored -- both userspace (xf86-video-nouveau) and the
kernel driver agreed on the layout, so the fact that the format was
wrong didn't matter.

With the atomic conversion, nouveau all of a sudden started caring about
the exact format, and so the previously-working code in
xf86-video-nouveau no longer functioned since the (internally-assigned)
format from the addfb ioctl was wrong.

This change adds infrastructure to allow a drm driver to specify that it
prefers the XBGR format variant for the addfb ioctl, and makes nouveau's
nv50 display driver set it. (Prior gens had no support for 30bpp at all.)

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: stable@vger.kernel.org # v4.10+
Acked-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180203191123.31507-1-imirkin@alum.mit.edu
2018-02-23 13:51:42 +01:00
..
bridge
i2c
tinydrm
ttm drm/ttm: remove ttm_bo_default_io_mem_pfn 2018-01-10 15:44:51 -05:00
amd_asic_type.h
ati_pcigart.h
drm_agpsupport.h
drm_atomic_helper.h
drm_atomic.h Fixes for 4.16. I contains fixes for deadlock on runtime suspend on few 2018-02-22 08:39:26 +10:00
drm_auth.h
drm_blend.h
drm_bridge.h
drm_cache.h
drm_color_mgmt.h
drm_connector.h
drm_crtc_helper.h drm: Allow determining if current task is output poll worker 2018-02-16 22:30:06 +01:00
drm_crtc.h
drm_debugfs_crc.h
drm_debugfs.h
drm_device.h
drm_displayid.h
drm_dp_dual_mode_helper.h
drm_dp_helper.h
drm_dp_mst_helper.h
drm_drv.h drm/nouveau: prefer XBGR2101010 for addfb ioctl 2018-02-23 13:51:42 +01:00
drm_edid.h
drm_encoder_slave.h
drm_encoder.h
drm_fb_cma_helper.h
drm_fb_helper.h
drm_file.h
drm_fixed.h
drm_flip_work.h
drm_fourcc.h
drm_framebuffer.h
drm_gem_cma_helper.h
drm_gem_framebuffer_helper.h
drm_gem.h
drm_global.h
drm_hashtab.h
drm_ioctl.h
drm_irq.h
drm_lease.h
drm_legacy.h
drm_mipi_dsi.h
drm_mm.h
drm_mode_config.h
drm_mode_object.h
drm_modes.h
drm_modeset_helper_vtables.h
drm_modeset_helper.h
drm_modeset_lock.h
drm_of.h
drm_os_linux.h
drm_panel.h
drm_pci.h
drm_pciids.h
drm_plane_helper.h
drm_plane.h
drm_prime.h
drm_print.h
drm_property.h
drm_rect.h
drm_scdc_helper.h
drm_simple_kms_helper.h
drm_syncobj.h
drm_sysfs.h
drm_utils.h
drm_vblank.h
drm_vma_manager.h
drmP.h
gma_drm.h
gpu_scheduler_trace.h
gpu_scheduler.h
i915_component.h
i915_drm.h
i915_pciids.h
intel_lpe_audio.h
intel-gtt.h
spsc_queue.h