platform/core/uifw/vulkan-wsi-tizen.git
5 years agoPackage version up to 1.0.2 52/189552/1 accepted/tizen/unified/20180920.063828 submit/tizen/20180918.115241 submit/tizen/20180919.062615
Joonbum Ko [Tue, 18 Sep 2018 11:42:25 +0000 (20:42 +0900)]
Package version up to 1.0.2

Change-Id: I17ffca085e87fe66d40a5f75e960ee1136c71eb2
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoswapchain_tpl: Fixed wrong managing of tpl objects. 17/189417/1
Joonbum Ko [Mon, 17 Sep 2018 11:48:11 +0000 (20:48 +0900)]
swapchain_tpl: Fixed wrong managing of tpl objects.

Change-Id: I6ecfc05b03081764ff0752e5ef2a838b84c672f6
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoPackage version up to 1.0.1 44/189144/1 accepted/tizen/unified/20180918.062808 submit/tizen/20180917.042454
Joonbum Ko [Fri, 14 Sep 2018 01:59:03 +0000 (10:59 +0900)]
Package version up to 1.0.1

Change-Id: I22a71ccbbe84bcabaefdcd8a4e60675e9352756f
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoswapchain_tpl: Modified to unuse buffers list of vk_swapchain_tpl. 43/189143/1
Joonbum Ko [Fri, 14 Sep 2018 01:58:04 +0000 (10:58 +0900)]
swapchain_tpl: Modified to unuse buffers list of vk_swapchain_tpl.

Change-Id: Ifc870a75e6e5b461cb8a0636f188aa88f1d7e504
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoFixed some build warnings. 33/189033/1 accepted/tizen/unified/20180914.080412 submit/tizen/20180913.064752
Joonbum Ko [Thu, 13 Sep 2018 02:33:19 +0000 (11:33 +0900)]
Fixed some build warnings.

 - display.c : Added definition TIZEN_SUPPORT_D2D_MODE
              to disable codes related to D2D mode.

Change-Id: I6a94f8c7f322ee468b40edfc6e8fec7a0f190bae
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agospec: Add support for VK_KHR_incremental_present 44/185544/5
Harsh Aggarwal [Tue, 31 Jul 2018 10:58:31 +0000 (16:28 +0530)]
spec: Add support for VK_KHR_incremental_present

Change-Id: Ida4de95e016dcc6c3148cc5376cec0d1b73c3d0e

5 years agocleanup: use 'updated headers' from Vulkan-LoaderAndValidationLayers-devel 51/185551/2
Harsh Aggarwal [Tue, 31 Jul 2018 12:06:20 +0000 (17:36 +0530)]
cleanup: use 'updated headers' from Vulkan-LoaderAndValidationLayers-devel
pkgconfig(vulkan)

Change-Id: I6f8b8bb1b685a9c5715053adb42c94c568eaee11

5 years agoswapchain: Added some error condition to follow vk-spec. 91/188291/1 accepted/tizen/unified/20180904.180645 submit/tizen/20180904.025652
Joonbum Ko [Mon, 3 Sep 2018 11:55:50 +0000 (20:55 +0900)]
swapchain: Added some error condition to follow vk-spec.

 - minImageCount is the minimum number of presentable images that the application needs.
  The implementation will either create the swapchain with at least that many images,
   or it will fail to create the swapchain.

Change-Id: I1711c50456fd3487a495497bfd526ca9bf30d308
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agowsi: Modified to use tpl_display_get_with_backend_type. 58/186358/1 accepted/tizen/unified/20180810.062925 submit/tizen/20180809.084702
Joonbum Ko [Thu, 9 Aug 2018 07:04:00 +0000 (16:04 +0900)]
wsi: Modified to use tpl_display_get_with_backend_type.

 - This patch depends on libtpl-egl commit below.
 tpl_display: Added a new API to get existed display with backend type.
 Change-Id: I82f65da4f168f47b2669e5e82f92aae4e77968a0

Change-Id: I9c875c831f0f061c2e9ea80133f5dbed8fb3a415
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
5 years agoswapchain_tpl: Fixed some bugs to support oldSwapchain feature. 57/183357/1 accepted/tizen/unified/20180705.172738 submit/tizen/20180705.024447
joonbum.ko [Thu, 5 Jul 2018 00:09:50 +0000 (09:09 +0900)]
swapchain_tpl: Fixed some bugs to support oldSwapchain feature.

Change-Id: Ic5f74aa36726aaf9d77e98bcb1e4c3df6c6e29b9
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
5 years agospec: Change to BuildRequires for vulkan loader to pkgconfig. 40/182040/2 accepted/tizen/unified/20180621.141317 submit/tizen/20180620.051627
joonbum.ko [Tue, 19 Jun 2018 04:06:55 +0000 (13:06 +0900)]
spec: Change to BuildRequires for vulkan loader to pkgconfig.

Change-Id: Idc7edba757844e2377d15c13e0c2f078b30df6bc
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
5 years agowsi.h: Fixed wrong type for const pointer value. 43/182043/1
joonbum.ko [Wed, 20 Jun 2018 04:38:41 +0000 (13:38 +0900)]
wsi.h: Fixed wrong type for const pointer value.

Change-Id: Iaffd885ff3db4da4d1db18c3310f5ceea62b4db5
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
5 years agoswapchain: Implemented to support oldSwapchain feature. 39/182039/1
joonbum.ko [Fri, 15 Jun 2018 08:05:00 +0000 (17:05 +0900)]
swapchain: Implemented to support oldSwapchain feature.

Change-Id: I978ea556d258f353cd38d47351048e9964785993
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
5 years agoswapchain_tdm: fixed an incorrect use of user allocator. 38/182038/1
joonbum.ko [Fri, 15 Jun 2018 08:02:56 +0000 (17:02 +0900)]
swapchain_tdm: fixed an incorrect use of user allocator.

Change-Id: I38049f37ede39305e954a82eb6926a592e091968
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain: Fixed potential memory leaks in exceptional situations. 47/178947/1 accepted/tizen/unified/20180518.120500 submit/tizen/20180516.003940
joonbum.ko [Tue, 15 May 2018 04:37:36 +0000 (13:37 +0900)]
swapchain: Fixed potential memory leaks in exceptional situations.

Change-Id: I4adf153e43382cfc74dac94b386b4248067d3b6e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain: Enabled to use user allocator. 46/178946/1
joonbum.ko [Tue, 15 May 2018 02:42:27 +0000 (11:42 +0900)]
swapchain: Enabled to use user allocator.

Change-Id: I224292a562bc391114a1391b7dcbff6bd5bf6e50
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain: Changed the type of allocator to its pointer. 45/178945/1
joonbum.ko [Tue, 15 May 2018 02:36:30 +0000 (11:36 +0900)]
swapchain: Changed the type of allocator to its pointer.

Change-Id: I9ddcd491b48ce7d896df54b09e0b1a9a34204660
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoFixed some potential issues. 00/173700/1 accepted/tizen/unified/20180326.075301 submit/tizen/20180323.075654
joonbum.ko [Fri, 23 Mar 2018 07:47:18 +0000 (16:47 +0900)]
Fixed some potential issues.

 - WGID : 305119
  null-driver : NONTERMINATED_STRING
 - WGID : 305122
  samples/tri.c : DEREF_AFTER_NULL

Change-Id: I11ed1b1e05bb514c401793602dc81df064536379
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoFixed some build warnings. 92/173692/1
joonbum.ko [Fri, 23 Mar 2018 06:42:08 +0000 (15:42 +0900)]
Fixed some build warnings.

Change-Id: I3ee06a3474ba7bc0b8f7bc36ee8c87bfd5212420
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agonull-driver: Fixed some coverity issues. 18/173518/1
joonbum.ko [Thu, 22 Mar 2018 06:15:58 +0000 (15:15 +0900)]
null-driver: Fixed some coverity issues.

 - null-driver/null-driver.c : CID 104871 - Resource leak

Change-Id: Iacf57b6132563d7b41ecf5930dc1d6e502cf0225
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agosamples: Fixed some coverity issues. 17/173517/1
joonbum.ko [Thu, 22 Mar 2018 06:13:13 +0000 (15:13 +0900)]
samples: Fixed some coverity issues.

 - samples/tri.c : CID 104865 - Argument cannot be negative.
                   CID 111624 - Wrong sizeof argument.
 - samples/vulkaninfo.c : CID 111617 - Wrong sizeof argument.

Change-Id: I7bbac16c958b50c9a2225851949d6799e1f90f1e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agodisplay: Disabled tdm_display_init(). 26/169626/1 accepted/tizen/unified/20180208.163712 submit/tizen/20180208.053156
joonbum.ko [Thu, 8 Feb 2018 04:33:03 +0000 (13:33 +0900)]
display: Disabled tdm_display_init().

     - Currently, the Tizen platform does not support D2D mode.
     - So calling tdm_display_init() is always failed.
     - If Tizen will be possible D2D mode later, will need to add some codes about tdm_display.

Change-Id: I3fb71e51779d1f06df5cf706bf97338055a56ecd
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agosamples: Fixed to prevent buffer overflow problem. 24/168624/2
joonbum.ko [Tue, 30 Jan 2018 01:32:42 +0000 (10:32 +0900)]
samples: Fixed to prevent buffer overflow problem.

 - OVERFLOW_UNDER_CHECK WGID: 305123, 305124

Change-Id: I6ed25955b9846bcdfdf86b35586594ff4f7b96e9
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agonull-driver: Fixed to prevent memory & nonterminated string problem. 23/168623/1
joonbum.ko [Mon, 29 Jan 2018 10:51:54 +0000 (19:51 +0900)]
null-driver: Fixed to prevent memory & nonterminated string problem.

 - MEMORY_LEAK.EX WGID: 305114
 - NONTERMINATING_STRING.STYLE WGID: 305119

Change-Id: I4a0c991db6e18974f72f0e1d0ce26e1e91c97706
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agosamples: Fixed some dereferencing problems. 22/168622/1
joonbum.ko [Mon, 29 Jan 2018 06:55:12 +0000 (15:55 +0900)]
samples: Fixed some dereferencing problems.

 - DEREF_OF_NULL.RET.ALLOC WGID: 305109, 305113, 305118
 - DEREF_AFTER_NULL.EX WGID: 305122

Change-Id: If7e12b85c33623345eb782d3171b93a8e5cda274
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agosamples: Fixed some potential memory leaks. 21/168621/1
joonbum.ko [Mon, 29 Jan 2018 05:39:55 +0000 (14:39 +0900)]
samples: Fixed some potential memory leaks.

 - HANDLE_LEAK  WGID: 305107
 - MEMORY_LEAK  WGID: 305108, 305111

Change-Id: Ie81e0a3425c1119f834d466979edeb7d4a379899
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agosamples: Changed to use snprintf() instead of sprintf(). 20/168620/1
joonbum.ko [Mon, 29 Jan 2018 05:07:09 +0000 (14:07 +0900)]
samples: Changed to use snprintf() instead of sprintf().

 - PROC_USE.VULNERABLE
  WGID: 305103, 305104

Change-Id: Ibe7521bab6b8568a0e6039bff3c41b0e914db71f
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain_tpl: Fixed to use tpl_surface_get() before create. 94/165694/1
joonbum.ko [Tue, 2 Jan 2018 04:22:11 +0000 (13:22 +0900)]
swapchain_tpl: Fixed to use tpl_surface_get() before create.

 - We need to call tpl_surface_get() before tpl_surface_create() to pass
  dEQP-VK.wsi.wayland.swapchain.modify.resize test.
 - tpl_surface_get() newly added below.
  libtpl-egl : tpl: Added a new API tpl_surface_get()
              46a8d4c7879b9349458f8e0098ae27bb5b586c3e

Change-Id: I3d1cd23d15d3ed0306b805d1aed357ca0e94797e
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agowsi: Modified to reference only existing displays. 93/165693/1
joonbum.ko [Tue, 2 Jan 2018 02:17:33 +0000 (11:17 +0900)]
wsi: Modified to reference only existing displays.

Change-Id: Ibdd52293c7f06aefe95f5bc6f92eb3deebc187eb
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agowsi: Removed unnecessary referencing. 36/163536/1 accepted/tizen/unified/20171228.065020 submit/tizen/20171227.062232
joonbum.ko [Tue, 12 Dec 2017 02:40:39 +0000 (11:40 +0900)]
wsi: Removed unnecessary referencing.

Change-Id: Ie5d1971ac546ebc9de4286edfb0cdc430eb03493
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agowsi: Changed to use TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD. 84/161984/1
joonbum.ko [Tue, 28 Nov 2017 10:19:41 +0000 (19:19 +0900)]
wsi: Changed to use TPL_BACKEND_WAYLAND_VULKAN_WSI_THREAD.

Change-Id: Id7eeafbf2afed5e9d9a858a586a8c0dc492c38de
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain_tpl: Modified tpl_object to be retained during swapchain re-creating. 83/161983/1
joonbum.ko [Tue, 14 Nov 2017 02:40:35 +0000 (11:40 +0900)]
swapchain_tpl: Modified tpl_object to be retained during swapchain re-creating.

Change-Id: I9a7b1ae0b5550864d36a61f1e67f842866d1770c
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agowsi: Fixed ref count management in tpl_display. 82/161982/1
joonbum.ko [Tue, 14 Nov 2017 02:21:41 +0000 (11:21 +0900)]
wsi: Fixed ref count management in tpl_display.

Change-Id: I6d66fad20251e84b6b2c2566c9a6d59c5a4c29cf
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain_tpl: Added handling error case when acquire next buffer. 81/161981/1
joonbum.ko [Tue, 14 Nov 2017 02:10:17 +0000 (11:10 +0900)]
swapchain_tpl: Added handling error case when acquire next buffer.

Change-Id: I99b87e0185e3801cf4c06cdfce3fd3dfecb1b465
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoswapchain: Added exception checking for error case. 80/161980/1
joonbum.ko [Tue, 14 Nov 2017 02:08:24 +0000 (11:08 +0900)]
swapchain: Added exception checking for error case.

Change-Id: Ib7453fa7f8430e3e0d88921aa7c2fd6928747d79
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
6 years agoHandle the case when the input swapchain is NULL 93/149693/4
xuelian.bai [Wed, 13 Sep 2017 10:01:14 +0000 (18:01 +0800)]
Handle the case when the input swapchain is NULL

Change-Id: If213af9a7bddeffa9a0608b2d709a91580bfdef3
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
Reviewed-by: Hoyub Lee <hoyub.lee@samsung.com>
6 years ago[HOTFIX] Avoid duplication of surface_formats in querying 62/148862/2
xuelian.bai [Mon, 11 Sep 2017 13:03:25 +0000 (21:03 +0800)]
[HOTFIX] Avoid duplication of surface_formats in querying

Currently, tbm formats and vulkan formats are not mapped perfectly.
By this, in querying supported formats with tpl_get_surface_formats(),
duplication occurs in supported formats.

Therefore, apply hotfix to avoid duplicated results.

Change-Id: I28474c462276d1549142ae2300695b1680e59832
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agowsi: Correct getting tpl_display in vk_get_tpl_display() 34/130034/1 tizen_4.0 submit/submit/tizen/20170906.070327/20170906.070422 submit/tizen/20170920.051244
Hoyub Lee [Thu, 18 May 2017 11:36:09 +0000 (20:36 +0900)]
wsi: Correct getting tpl_display in vk_get_tpl_display()

tpl_display_create() has been changed to [return existing tpl_display] from
[return NULL] if there is already existing one.

Therefore, this patch applies this behaviour change on vk_get_tpl_display().

Change-Id: I355b251d43e6e0e54b89aa533d43f33ada997017
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
7 years agouse %license macro to copy the COPYING file. 43/120243/1
SooChan Lim [Wed, 22 Mar 2017 06:50:22 +0000 (15:50 +0900)]
use %license macro to copy the COPYING file.

Change-Id: I1ad8ab5bddc76a80365f04f17a0378d960a53030

7 years agotbm_queue_surface: modified tbm_queue_surface related funcs 99/104799/3
deasung.kim [Wed, 14 Dec 2016 09:38:15 +0000 (18:38 +0900)]
tbm_queue_surface: modified tbm_queue_surface related funcs

handle new WSI surface type VK_ICD_WSI_PLATFORM_TBM_QUEUE

Change-Id: I68c796ee1743902920a5ee5e481f0e97ea2a943a

7 years agotbm_queue_surface : implement vkCreateTBMQueueSurfaceKHR 98/104798/3
deasung.kim [Wed, 14 Dec 2016 09:32:29 +0000 (18:32 +0900)]
tbm_queue_surface : implement vkCreateTBMQueueSurfaceKHR

added vk_tbm_queue_surface structure

Change-Id: I3b2da3bf4d90d93c0247dc7332872b8a21747cd4

7 years agovk_tizen: added new function prototype for tpl_tbm support 97/104797/3
deasung.kim [Wed, 14 Dec 2016 09:08:20 +0000 (18:08 +0900)]
vk_tizen: added new function prototype for tpl_tbm support

VKAPI_ATTR VkResult VKAPI_CALL vkCreateTBMQueueSurfaceKHR(VkInstance instance,
  const tbm_bufmgr bufmgr,
  const tbm_surface_queue_h queue,
  const VkAllocationCallbacks *pAllocator,
  VkSurfaceKHR *surface);

Change-Id: I0d3acaf8fbaa985dee34be64a2906da239eb9b07

7 years agoswapchain_tdm: added restore tdm dpms when swapchain destroy 87/102987/2
deasung.kim [Wed, 16 Nov 2016 09:15:46 +0000 (18:15 +0900)]
swapchain_tdm: added restore tdm dpms when swapchain destroy

get dpms value in swapchain create
use this value in swapchain destroy

Change-Id: Ia78adc4c1cad9bd501dee3f815f8f1a0d788aba1

7 years agosurface: fix segfault when tdm display init failed 86/102986/2
deasung.kim [Tue, 1 Nov 2016 05:14:24 +0000 (14:14 +0900)]
surface: fix segfault when tdm display init failed

if tdm display init failed and app use display surface
then occur segfault in surface funcs

Change-Id: I2559e7df32196b20f5efe00e46e1bf19ca29e11c

7 years agoswapchain: added swapchain tdm backend 85/102985/2
deasung.kim [Tue, 1 Nov 2016 04:53:41 +0000 (13:53 +0900)]
swapchain: added swapchain tdm backend

implement swapchain tdm backend

Change-Id: I9b5cabff2232b495082a512645d849468ba5700e

7 years agoswapchain: separated swapchain.c 84/102984/2
deasung.kim [Tue, 1 Nov 2016 04:35:24 +0000 (13:35 +0900)]
swapchain: separated swapchain.c

modified vk_swapchain_t
added backend data
added backend funcs
added swapchain_tpl.c for tpl_backend

Change-Id: I4a3bd967df1e7afc0b0f91d14fd11ca29b135804

7 years agosurface: impliment VkIcdSurfaceDisplay(tdm) 83/102983/2
deasung.kim [Wed, 19 Oct 2016 07:17:05 +0000 (16:17 +0900)]
surface: impliment VkIcdSurfaceDisplay(tdm)

separated tpl/tdm backends

Change-Id: I4b11f53587302129edc706716a9919644a37500d

7 years agodisplay: implement vk_CreateDisplayModeKHR 82/102982/2
deasung.kim [Wed, 19 Oct 2016 09:08:44 +0000 (18:08 +0900)]
display: implement vk_CreateDisplayModeKHR

need review vk_display_t.custom_modes

Change-Id: I5879fbc936b6b6aacc75571bf647445b5fa06b70

7 years agodisplay: fill some TODO in add_tdm_output 81/102981/2
deasung.kim [Wed, 19 Oct 2016 09:10:24 +0000 (18:10 +0900)]
display: fill some TODO in add_tdm_output

physical size and some error check
some tdm_output has no mode
call physical_display_init on constructure

Change-Id: I203dc383659e67292e614ffd64e8ef12c7be5d01

7 years agodisplay: implement vk_GetDisplayPlaneCapabilitiesKHR 80/102980/2
deasung.kim [Thu, 20 Oct 2016 04:34:48 +0000 (13:34 +0900)]
display: implement vk_GetDisplayPlaneCapabilitiesKHR

plz check srcXXXX means

Change-Id: I63bdfac58daddb20062f3818e1a594a47861fe39

7 years agowsi: Basic display surface implementation 75/102975/2
Taekyun Kim [Mon, 10 Oct 2016 05:42:30 +0000 (14:42 +0900)]
wsi: Basic display surface implementation

Change-Id: I77331a48df659b0a775e82a3e693e8243d2ea90d

7 years agowsi: Skeletal code for VkDisplaySurfaceKHR 74/102974/2
Taekyun Kim [Tue, 4 Oct 2016 11:32:16 +0000 (20:32 +0900)]
wsi: Skeletal code for VkDisplaySurfaceKHR

Change-Id: I5c7c66721883a6309aefce211f0aa2edee65c79b

7 years agonulldrv: Fix warnings on strict aliasing rules 73/102973/2
Taekyun Kim [Wed, 28 Sep 2016 06:37:17 +0000 (15:37 +0900)]
nulldrv: Fix warnings on strict aliasing rules

Change-Id: Idd0afa6f96cc1ee71887bae390a47a4cd1337c26

7 years agowsi: Wrapper object for VkPhysicalDevice 72/102972/2
Taekyun Kim [Wed, 28 Sep 2016 06:36:27 +0000 (15:36 +0900)]
wsi: Wrapper object for VkPhysicalDevice

Change-Id: I88ff8018277ce407f1014370e28ccec0d01757a9

7 years agowsi: Removed unnecessary #include 71/102971/2
Taekyun Kim [Wed, 28 Sep 2016 05:35:37 +0000 (14:35 +0900)]
wsi: Removed unnecessary #include

Change-Id: I27898e2278a135a703ada47e6ab27d0bceec870d

7 years agoBuild: Fix loading path of vulkan-wsi-tizen.so on vulkan-wsi-tizen.json 09/103209/1
Mun, Gwan-gyeong [Wed, 7 Dec 2016 15:25:48 +0000 (00:25 +0900)]
Build: Fix loading path of vulkan-wsi-tizen.so on vulkan-wsi-tizen.json

 - before: it loads from /usr/lib/vulkan/vulkan-wsi-tizen.so
 - after : 32bit case; /usr/lib/vulkan/vulkan-wsi-tizen.so
           64bit case; /usr/lib64/vulkan/vulkan-wsi-tizen.so

Change-Id: Ibcc13231d216e9c2e892cf2045d54af52803338b
Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
7 years agosurface/swapchain: apply present mode 91/89491/4
deasung.kim [Sat, 24 Sep 2016 11:39:32 +0000 (20:39 +0900)]
surface/swapchain: apply present mode

 - use tpl_present_mode
Change-Id: I4269a1a0e8b19449f5276d52a0c9a50145bb327c

7 years agoswapchain: added return case of VK_ERROR_OUT_OF_DEVICE_MEMORY on vk_CreateSwapchainKHR() 51/91251/2
Mun, Gwan-gyeong [Thu, 6 Oct 2016 11:15:45 +0000 (20:15 +0900)]
swapchain: added return case of VK_ERROR_OUT_OF_DEVICE_MEMORY on vk_CreateSwapchainKHR()

Change-Id: I3d7275f1e8d525779a4004f36d8c38756c59cf3a

7 years agosurface: added Temporal maxImageExtent.width / maxImageExtent.height for Tizen 50/91250/1
Mun, Gwan-gyeong [Thu, 6 Oct 2016 11:15:12 +0000 (20:15 +0900)]
surface: added Temporal maxImageExtent.width / maxImageExtent.height for Tizen

Change-Id: I87dc7a5db1b32234aa761dad7c38334fb917baa8

7 years agoswapchain: fix management of tpl_display reference count 01/89101/3
deasung.kim [Thu, 22 Sep 2016 07:09:27 +0000 (16:09 +0900)]
swapchain: fix management of tpl_display reference count

increase reference count of tpl_display when the vulkan-wsi-tizen calls tpl_display_get()
it prevents segfault/abort when the vk_DestroySwapchainKHR is called.

Change-Id: I89e8162bbe63682e7617d1279b83b2af33fed942

7 years agoswapchain: added error handle in create swapchain 65/89065/1
deasung.kim [Thu, 22 Sep 2016 03:40:09 +0000 (12:40 +0900)]
swapchain: added error handle in create swapchain

fix tbm_queue leak - it make segfault in tpl use worker thread model
tpl_surface_get_swapchain_buffers failed
mem alloc failed after tpl_surface_get_swapchain_buffers called

Change-Id: I834ac1bc138787665b87df1cb7f1418c19bf0b07

7 years agoswapchin: change the usage of libtbm_sync api 27/85227/3
deasung.kim [Wed, 24 Aug 2016 08:09:13 +0000 (17:09 +0900)]
swapchin: change the usage of libtbm_sync api

remove tbm_sync objects and use fd
libtbm's sync related api is changed
reference : https://review.tizen.org/gerrit/#/c/85169/

Change-Id: I40264c04f48cb69f30f53ca8031126e3525b1aff

7 years agoextension: remove duplicated extensions in vk_EnumerateDeviceExtensionProperties 91/84991/3
deasung.kim [Tue, 23 Aug 2016 07:30:37 +0000 (16:30 +0900)]
extension: remove duplicated extensions in vk_EnumerateDeviceExtensionProperties

Khronos Vulkan loader removes duplicated extension.
on previous implementation, if vk_EnumerateDeviceExtensionProperties call twice, then returned count is not same between first and second when the extensions has duplicate entry.

this patch eliminates duplicated extensions in vk_EnumerateDeviceExtensionProperties on vulkan-wsi-tizen's internal data structure.
Change-Id: Ie8cb66c45a626f46af040866737359cc046b18dc

7 years agoswapchain: use tpl with sync 06/81006/7
deasung.kim [Thu, 21 Jul 2016 08:55:23 +0000 (17:55 +0900)]
swapchain: use tpl with sync

used new tpl funcs
tpl_surface_dequeue_buffer_with_sync
get sync_fd from tpl(release buffer) and set sync_fd to driver
tpl_surface_enqueue_buffer_with_damage_and_sync
get sync_fd from driver(draw done) and set sync_fd to tpl for use attach/commit
not use damage

Change-Id: I438f6b722ba6e6f33ca45e8ed1c6867efc200996

8 years agoswapchain: fix swapchain image's extent depth value 1 59/74159/1
deasung.kim [Mon, 13 Jun 2016 03:35:35 +0000 (12:35 +0900)]
swapchain: fix swapchain image's extent depth value 1

from https://www.khronos.org/registry/vulkan/specs/1.0-wsi_extensions/xhtml/vkspec.html
31.4.1. Allowed Extent Values Based On Image Type

Change-Id: Iea73e5259a2d320d858bf7b7176f1ec99324a6e3

8 years agoswapchain: fill ImageCreateInfo from SwapchainCreateInfo 58/74158/1
deasung.kim [Fri, 10 Jun 2016 05:48:39 +0000 (14:48 +0900)]
swapchain: fill ImageCreateInfo from SwapchainCreateInfo

Change-Id: I955df19a9428bf99d90eabb2d0663ed641ba9675

8 years agoMerge "tri: inserted shader binary code for test convenience" into tizen
Gwan-gyeong Mun [Fri, 10 Jun 2016 05:44:25 +0000 (22:44 -0700)]
Merge "tri: inserted shader binary code for test convenience" into tizen

8 years agotri: inserted shader binary code for test convenience 95/73895/1
deasung.kim [Fri, 10 Jun 2016 03:48:14 +0000 (12:48 +0900)]
tri: inserted shader binary code for test convenience

Change-Id: I5bbadbb947765f472581abe922a26d036d3d2add

8 years agowsi: Support for various pixel formats 22/73822/1
Taekyun Kim [Thu, 9 Jun 2016 12:27:06 +0000 (21:27 +0900)]
wsi: Support for various pixel formats

Change-Id: If2250033603c4185833b5405a62d2c2929afee59

8 years agosamples: Skip checking shader clip distance device feature 21/73821/1
Taekyun Kim [Thu, 9 Jun 2016 05:38:33 +0000 (14:38 +0900)]
samples: Skip checking shader clip distance device feature

Mali ICD currently does not support the required feature, so just
bypass it in order to make sample application run.

Change-Id: Iec17ed429463b1b0789d953803820fd721b176ff

8 years agoswapchain: Fill out VkImageCreateInfo when creating presentable image 20/73820/1
Taekyun Kim [Thu, 9 Jun 2016 05:29:06 +0000 (14:29 +0900)]
swapchain: Fill out VkImageCreateInfo when creating presentable image

Expected value should be 1 for mip level, 1 for array layers and
VK_SAMPLE_COUNT_1_BIT for samples.

Change-Id: If2fee7fece3f7d6a10fc79bbb6b09462a9bf1f9f

8 years agobuild: Fix incorrect include header file for devel package 19/73819/1
Taekyun Kim [Tue, 7 Jun 2016 04:26:55 +0000 (13:26 +0900)]
build: Fix incorrect include header file for devel package

Change-Id: I72acefd6e300f8c124a5aaf429f0a23096d02f91

8 years agowsi: Better integration interface between WSI and ICD 89/72789/1
Taekyun Kim [Fri, 27 May 2016 05:49:19 +0000 (14:49 +0900)]
wsi: Better integration interface between WSI and ICD

Now, ICD provides functions required by WSI as vulkan extensions.
Those extensions might be exposed user if required in the future.
ICD should return the extension functions for all possible query
functions (vk_icdGetInstanceProcAddr and vkGetXXXProcAddress)

Change-Id: I776790598d8d5f3056e5b42c8defb388b8d30e3d

8 years agowsi: Refactoring to support display surface 88/72788/1
Taekyun Kim [Thu, 19 May 2016 08:18:44 +0000 (17:18 +0900)]
wsi: Refactoring to support display surface

Change-Id: I7be92c8251838995f618f961c9d595cbd77d19d9

8 years agoutils: Add missing vk_container_of macro 87/72787/1
Taekyun Kim [Thu, 19 May 2016 05:06:25 +0000 (14:06 +0900)]
utils: Add missing vk_container_of macro

Change-Id: I5dc389412a8a22098f994b29e281d8dde659f2bf

8 years agonull-driver: added missing VK_EXPORT keyword 01/70301/1
deasung.kim [Thu, 19 May 2016 05:00:03 +0000 (14:00 +0900)]
null-driver: added missing VK_EXPORT keyword

vk_signal_semaphore
vk_wait_for_semaphores
vk_signal_fence

Change-Id: Iefe018d26d3a2bfb23f334be487883d8e28a261f

8 years agowsi: Tizen vulkan WSI development header file documentation 86/70086/1
Taekyun Kim [Wed, 18 May 2016 04:54:58 +0000 (13:54 +0900)]
wsi: Tizen vulkan WSI development header file documentation

Change-Id: Ie93558c3b0cc65a3e25d702347f1e5c0c8961207

8 years agoswapchain: Wait semaphores before issueing present request 63/69263/1
Taekyun Kim [Thu, 12 May 2016 09:49:57 +0000 (18:49 +0900)]
swapchain: Wait semaphores before issueing present request

Change-Id: I5425a825df875365c399d34a12bd57c154a7c000

8 years agowsi: Use const qualifier for semaphores in vk_wait_for_semaphores() 62/69262/1
Taekyun Kim [Thu, 12 May 2016 09:48:45 +0000 (18:48 +0900)]
wsi: Use const qualifier for semaphores in vk_wait_for_semaphores()

Change-Id: I99c42eddee86aecf58b2fa315208299638682f24

8 years agoswapchain: Signal fence and semaphore in vkAcquireNextImageKHR() 61/69261/1
Taekyun Kim [Thu, 12 May 2016 09:44:29 +0000 (18:44 +0900)]
swapchain: Signal fence and semaphore in vkAcquireNextImageKHR()

Users should wait for fence or semaphore to be signaled in order to
use the acquired VkImage. We signal them immediately because the
dequeued buffer is already ready to be used. Later, we can do some
kinda lazy signaling by returning buffer index immediately and signal
fence or semaphore when wl_buffer.release actually arrives.

Change-Id: I59c555f939834448ce4251552452c4a1bc54f26f

8 years agoicd: Functions for calling vendor ICD semaphore and fence functions 60/69260/1
Taekyun Kim [Thu, 12 May 2016 09:35:46 +0000 (18:35 +0900)]
icd: Functions for calling vendor ICD semaphore and fence functions

Change-Id: Idd757bae2504cb5ba94808f12e9191270fb8b088

8 years agoicd: Retreive semaphore and fence functions from ICD 55/69255/1
Taekyun Kim [Thu, 12 May 2016 09:33:22 +0000 (18:33 +0900)]
icd: Retreive semaphore and fence functions from ICD

Change-Id: I5ebcf66738c6f58f0b589d89dbdc0a52539e0056

8 years agonull-driver: Implement functions required by vulkan-wsi-tizen.h 54/69254/1
Taekyun Kim [Thu, 12 May 2016 09:29:19 +0000 (18:29 +0900)]
null-driver: Implement functions required by vulkan-wsi-tizen.h

Change-Id: I134d19221eb73b609be1e25a34ffe9dcc5cb1097

8 years agowsi: Add function prototypes that vendors should provide 53/69253/1
Taekyun Kim [Thu, 12 May 2016 09:17:44 +0000 (18:17 +0900)]
wsi: Add function prototypes that vendors should provide

Change-Id: Ie19a4dd9924cf9273f58f490d56f2d71b11aaeae

8 years agonull-driver: Fix type cast warning 52/69252/1
Taekyun Kim [Thu, 12 May 2016 09:13:39 +0000 (18:13 +0900)]
null-driver: Fix type cast warning

Change-Id: I707d2552af61c4aa0778230d96e5cb3adfbbdd2c

8 years agowsi: Add devel package 70/69170/1
Taekyun Kim [Tue, 10 May 2016 05:50:04 +0000 (14:50 +0900)]
wsi: Add devel package

Vendors should use devel package for their drivers to work correctly
with tizen vulkan WSI.

Change-Id: Ie4bcfc6ef6d771b8a286857fd423c4f1c1238c6c

8 years agoentry-points: Fix func type of vkEnumerateInstanceExtensionProperties() 63/68363/1
Taekyun Kim [Mon, 18 Apr 2016 03:46:52 +0000 (12:46 +0900)]
entry-points: Fix func type of vkEnumerateInstanceExtensionProperties()

Change-Id: I308b64051edfabe41ebc7967d8aee5080d324779

8 years agosurface: use tpl_display_query_supported_buffer_count_from_native_window 31/67031/3
deasung.kim [Sun, 24 Apr 2016 05:55:06 +0000 (14:55 +0900)]
surface: use tpl_display_query_supported_buffer_count_from_native_window

this patch depends on
https://review.tizen.org/gerrit/#/c/66840

Change-Id: If852d63bd0be788a8d21356d161de4b4a57d7177

8 years agoswapchain: remove temporal swapchain debugging code. 29/66729/1
Mun, Gwan-gyeong [Wed, 20 Apr 2016 13:17:48 +0000 (22:17 +0900)]
swapchain: remove temporal swapchain debugging code.

Change-Id: I455b3f7f1f91bd95f7369a4e98cb566c8dcec8dc

8 years agoMerge "null-driver: add include stdio.h for debugging of null driver." into tizen
Sangjin Lee [Tue, 19 Apr 2016 04:44:35 +0000 (21:44 -0700)]
Merge "null-driver: add include stdio.h for debugging of null driver." into tizen

8 years agoMerge changes Id53d17c1,Ica6c0627,I124d9940 into tizen
Sangjin Lee [Tue, 19 Apr 2016 04:44:24 +0000 (21:44 -0700)]
Merge changes Id53d17c1,Ica6c0627,I124d9940 into tizen

* changes:
  etc: Fix int to pointer typecasting build warnings
  swapchain: add debug info code for SwapChain's VkImage. Later we should remove or revert this code / commit
  samples: change tri sample's window size

8 years agonull-driver: add include stdio.h for debugging of null driver. 74/66374/3
Mun, Gwan-gyeong [Mon, 18 Apr 2016 11:46:18 +0000 (20:46 +0900)]
null-driver: add include stdio.h for debugging of null driver.

Change-Id: Ib347462632b72f09fbf99a306cfae6c32d81f0b0

8 years agoetc: Fix int to pointer typecasting build warnings 73/66373/4
Mun, Gwan-gyeong [Mon, 18 Apr 2016 11:15:36 +0000 (20:15 +0900)]
etc: Fix int to pointer typecasting build warnings

This is a bug from the khronos vulkan header file. It is scheduled to be resolved in
milestone "P1". See the following issue page.

https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/issues/36

When we use typecasting to pointer type, we should use uintptr_t type. it provides
safe pointer typecasting on 32bit and 64bit. We can revert this commit when the
above issue is resolved.

Change-Id: Id53d17c13c0dafc341889875140469c0f2943e67

8 years agoswapchain: add debug info code for SwapChain's VkImage. Later we should remove or... 72/66372/2
Mun, Gwan-gyeong [Mon, 18 Apr 2016 11:30:12 +0000 (20:30 +0900)]
swapchain: add debug info code for SwapChain's VkImage. Later we should remove or revert this code / commit

Change-Id: Ica6c0627e3692206ca2b29152fbe7e4923e9d57d

8 years agosamples: change tri sample's window size 71/66371/2
Mun, Gwan-gyeong [Mon, 18 Apr 2016 11:24:56 +0000 (20:24 +0900)]
samples: change tri sample's window size

Change-Id: I124d9940f52cf0f9461b463230d1a4ed9c523fe1

8 years agoetc: Add vulkaninfo into .gitignore 16/66416/1
Taekyun Kim [Tue, 19 Apr 2016 01:17:46 +0000 (10:17 +0900)]
etc: Add vulkaninfo into .gitignore

Change-Id: Idaf6dab972acd80bdf7b8b7a8a39fb5c94015c7a

8 years agocreate samples package for test 95/66295/1
deasung.kim [Mon, 18 Apr 2016 04:30:06 +0000 (13:30 +0900)]
create samples package for test

added tri/vulkaninfo/null-driver.so

Change-Id: I8aa4b7f6dd7ac43e3e5a100e190938001f6f5aae

8 years agosurface: use vk_get_tpl_display instead of tpl_display_get 42/66242/1
deasung.kim [Fri, 15 Apr 2016 04:35:20 +0000 (13:35 +0900)]
surface: use vk_get_tpl_display instead of tpl_display_get

Change-Id: I01213f16f87a11d1ebdd9d2b9e8fe85e8b68b421

8 years agoswapchain: use vk_get_tpl_display instead of tpl_display_get 41/66241/1
deasung.kim [Fri, 15 Apr 2016 04:28:51 +0000 (13:28 +0900)]
swapchain: use vk_get_tpl_display instead of tpl_display_get

Change-Id: Ibab72b44e30b760b9c662fa048fd0149df4d3a06

8 years agowsi: added func vk_get_tpl_display 66/66066/1
deasung.kim [Fri, 15 Apr 2016 04:25:05 +0000 (13:25 +0900)]
wsi: added func vk_get_tpl_display

if tpl_display_create failed
try tpl_display_get

Change-Id: Ifb9add6c216b6eb3ad0d48efcb929c14d8b69338