mesa/src
Keith Packard 54d0daa481 anv: Add KHR_display extension to anv [v7]
This adds support for the KHR_display extension to the anv Vulkan
driver. The driver now attempts to open the master DRM node when the
KHR_display extension is requested so that the common winsys code can
perform the necessary operations.

v2: Make sure primary fd is usable

	When KHR_display is selected, we try to open the primary node
	instead of the render node in case the user wants to use
	KHR_display for presentation. However, if we're actually going
	to end up using RandR leases, then we don't care if the
	resulting fd can't be used for display, but the kernel also
	prevents us from using it for drawing when someone else has
	master.

v3:
	Simplify addition of VK_USE_PLATFORM_DISPLAY_KHR to vulkan_wsi_args

	Suggested-by: Eric Engestrom <eric.engestrom@imgtec.com>

v4:
	Adapt primary node usage to new wsi_device_init API

v5:
	Adopt Jason Ekstrand's coding conventions

        Declare variables at first use, eliminate extra whitespace between
        types and names. Wrap lines to 80 columns.

	Remove spurious MM_PER_PIXEL define

        Suggested-by: Jason Ekstrand <jason.ekstrand@intel.com>

v6:
	Open DRM master before initializing WSI layer.

	The DRM master FD is passed to the WSI layer during
	initialization, so we need to open the device slightly earlier
	in the function.

	Close DRM master in device_finish.

	Use anv_gem_get_param to detect working master_fd instead of
	directly using the ioctl.

        Suggested-by: Jason Ekstrand <jason.ekstrand@intel.com>

v7:
	Add vkCreateDisplayModeKHR. This doesn't actually create
	new modes, it only looks to see if the requested parameters
	matches an existing mode and returns that.

    	Suggested-by: Jason Ekstrand <jason.ekstrand@intel.com>

Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
2018-06-19 14:17:46 -07:00
..
amd vulkan: Add KHR_display extension using DRM [v10] 2018-06-19 14:17:46 -07:00
broadcom v3d: Add missing always_flush debug flag. 2018-06-19 09:42:20 -07:00
compiler nir: add pass to move load_const 2018-06-19 13:02:28 -04:00
egl meson: Remove various completed todos 2018-06-13 10:07:03 -07:00
gallium radeonsi: rename r600_texture -> si_texture, rxxx -> xxx or sxxx 2018-06-19 13:08:50 -04:00
gbm meson: Remove various completed todos 2018-06-13 10:07:03 -07:00
getopt Introduce .editorconfig 2016-08-31 17:06:54 -07:00
glx glx: Fix number of property values to read in glXImportContextEXT 2018-06-05 18:56:43 +02:00
gtest autotools: include meson build files in tarball 2018-01-19 16:30:51 -08:00
hgl meson: Add Haiku platform support v4 2018-02-16 16:56:34 -06:00
intel anv: Add KHR_display extension to anv [v7] 2018-06-19 14:17:46 -07:00
loader dri3: Stricter SBC wraparound handling 2018-05-22 17:59:53 +02:00
mapi mesa: add support for ARB_sample_locations 2018-06-14 20:09:45 -06:00
mesa mesa/st/nir: fix driver_location for arrays of image/sampler 2018-06-19 13:02:28 -04:00
util util: add allow_glsl_relaxed_es to drirc for Google Earth VR 2018-06-19 12:09:56 +10:00
vulkan vulkan: Add KHR_display extension using DRM [v10] 2018-06-19 14:17:46 -07:00
git_sha1.h.in meson: Build i965 and dri stack 2017-10-09 13:42:44 -07:00
Makefile.am egl: rewire the build systems to use libwayland-egl 2018-06-06 12:11:57 -07:00
meson.build meson: only build mesa_st tests when build-tests is true 2018-04-24 14:08:15 -07:00
SConscript buildsys: move file regeneration logic to the script itself 2017-10-27 13:38:37 +01:00