mesa/src/intel/vulkan
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
..
tests anv: Soft-pin state pools 2018-06-01 13:49:22 -07:00
.gitignore anv,nir: add generated files to .gitignore(s) 2018-05-12 20:14:49 -07:00
anv_allocator.c anv: Soft-pin everything else 2018-06-01 14:27:13 -07:00
anv_android.c anv/android: Use an address for each anv_image plane 2018-06-12 11:17:43 +03:00
anv_batch_chain.c anv: Don't even bother processing relocs if we have softpin 2018-06-01 16:34:26 -07:00
anv_blorp.c anv: Use an address for each anv_image plane 2018-05-31 16:51:46 -07:00
anv_cmd_buffer.c anv: Add gen11 to anv_genX_call 2018-03-23 17:23:59 -07:00
anv_descriptor_set.c anv: Use an anv_address in anv_buffer 2018-05-31 16:51:46 -07:00
anv_device.c anv: Add KHR_display extension to anv [v7] 2018-06-19 14:17:46 -07:00
anv_dump.c anv: enable multiple planes per image/imageView 2017-10-06 16:32:20 +01:00
anv_entrypoints_gen.py android: enable VK_ANDROID_native_buffer 2018-05-21 09:26:50 +03:00
anv_extensions.py anv: Add KHR_display extension to anv [v7] 2018-06-19 14:17:46 -07:00
anv_extensions_gen.py anv: Add KHR_display extension to anv [v7] 2018-06-19 14:17:46 -07:00
anv_formats.c anv: Allow blitting to/from any supported format 2018-05-09 11:16:33 -07:00
anv_gem.c intel: fix check for 48b ppgtt support 2018-04-30 11:34:19 -07:00
anv_gem_stubs.c intel: fix check for 48b ppgtt support 2018-04-30 11:34:19 -07:00
anv_genX.h anv/cmd_buffer: Add a mark_image_written helper 2018-02-08 16:35:31 -08:00
anv_icd.py anv_icd.py: improve reproducible builds 2018-01-26 01:37:45 -08:00
anv_image.c anv: Use an address for each anv_image plane 2018-05-31 16:51:46 -07:00
anv_intel.c anv: intel: add softpin flag on imported BOs 2018-06-05 14:18:35 +01:00
anv_nir.h anv: Implement vkCmdDispatchBase 2018-03-07 12:13:47 -08:00
anv_nir_add_base_work_group_id.c anv: Implement vkCmdDispatchBase 2018-03-07 12:13:47 -08:00
anv_nir_apply_pipeline_layout.c nir: Rename image intrinsics to image_var 2018-03-23 13:48:11 +11:00
anv_nir_lower_input_attachments.c nir: Rename image intrinsics to image_var 2018-03-23 13:48:11 +11:00
anv_nir_lower_multiview.c util: Move util_is_power_of_two to bitscan.h and rename to util_is_power_of_two_or_zero 2018-03-29 14:09:23 -07:00
anv_nir_lower_push_constants.c spirv/i965/anv: Relax push constant offset assertions being 32-bit aligned 2018-02-28 21:37:40 -08:00
anv_nir_lower_ycbcr_textures.c Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00
anv_pass.c vulkan: Rename multiview from KHX to KHR 2018-03-07 12:13:47 -08:00
anv_pipeline.c anv: enable VK_EXT_shader_stencil_export 2018-06-08 11:16:01 -07:00
anv_pipeline_cache.c blob: Use intptr_t instead of ssize_t 2017-10-13 15:02:34 -07:00
anv_private.h vulkan: Add KHR_display extension using DRM [v10] 2018-06-19 14:17:46 -07:00
anv_queue.c anv: Set fence/semaphore types to NONE in impl_cleanup 2018-06-07 09:46:45 -07:00
anv_util.c anv: avoid segmentation fault due to vk_error() 2018-01-19 09:39:05 +01:00
anv_wsi.c vulkan: Add KHR_display extension using DRM [v10] 2018-06-19 14:17:46 -07:00
anv_wsi_display.c anv: Add KHR_display extension to anv [v7] 2018-06-19 14:17:46 -07:00
anv_wsi_wayland.c anv/wsi: Don't include wayland headers 2017-03-13 11:16:30 +00:00
anv_wsi_x11.c vulkan/wsi/radv: add initial prime support (v1.1) 2017-02-27 05:42:16 +10:00
gen7_cmd_buffer.c anv: Use an anv_address in anv_buffer 2018-05-31 16:51:46 -07:00
gen8_cmd_buffer.c anv: Use an anv_address in anv_buffer 2018-05-31 16:51:46 -07:00
genX_blorp_exec.c intel/blorp: Emit VF cache invalidates for 48-bit bugs with softpin. 2018-06-06 19:45:09 -07:00
genX_cmd_buffer.c anv: Use an address for each anv_image plane 2018-05-31 16:51:46 -07:00
genX_gpu_memcpy.c intel: Drop SURFACE_FORMAT enum from genxml. 2018-03-05 09:51:08 -08:00
genX_pipeline.c anv: enable VK_EXT_shader_stencil_export 2018-06-08 11:16:01 -07:00
genX_query.c anv: Soft-pin everything else 2018-06-01 14:27:13 -07:00
genX_state.c anv: Disable constant buffer 0 being relative. 2018-06-18 14:41:38 -07:00
meson.build anv: Add KHR_display extension to anv [v7] 2018-06-19 14:17:46 -07:00
TODO anv: Implement pipeline statistics queries 2017-03-17 12:12:50 -07:00
vk_format_info.h Get rid of a bunch of KHR suffixes 2018-03-07 12:13:47 -08:00