summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-08-30Fix 1x1 issue of task-mgrtizen_5.5.m2_releasesubmit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5_mobile_hotfix/20201026.185107submit/tizen_5.5/20191031.000010submit/tizen/20190830.072315accepted/tizen/unified/20190902.055254accepted/tizen/5.5/unified/wearable/hotfix/20201027.095847accepted/tizen/5.5/unified/mobile/hotfix/20201027.073534accepted/tizen/5.5/unified/20191031.004442tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedXuelian Bai4-2/+37
Makecurrent is called just before resize callback is called, so we have to check if size is changed when drawcall. Change-Id: I82c4f8fd1c805ad8cd9094dccb8e8430b8ef35cd
2019-08-27Fix yuv blit align issue.submit/tizen/20190829.234817accepted/tizen/unified/20190830.040819Xuelian Bai1-1/+1
Change-Id: I78de02c5e3fe51a4240bf567749e30ce7df81782
2019-07-18Revert "sync wayland-egl code"submit/tizen/20190731.004415submit/tizen/20190730.013757submit/tizen/20190726.042250submit/tizen/20190723.043836submit/tizen/20190723.011703submit/tizen/20190717.043119accepted/tizen/unified/20190731.024348accepted/tizen/unified/20190724.063754Joonbum Ko3-45/+15
This reverts commit e235e1fe2cc6046cac22135c9779b5630eeb8a3c. Change-Id: Ia8d67d3b392afdb10cf28168f3a456ee008728b8
2019-07-18Revert "Create devel file for gbm"submit/tizen/20190724.231212submit/tizen/20190718.022254accepted/tizen/unified/20190724.231732accepted/tizen/unified/20190719.111635Joonbum Ko3-35/+1
This reverts commit 50ab33c2da2203fa2b9905bb273af8838653ac2a. Change-Id: Iefe4be0e99bf67e87d5882fbc15eb2649499ffd7
2019-07-05Create devel file for gbmsubmit/tizen/20190716.054641submit/tizen/20190715.062210accepted/tizen/unified/20190717.115255Zhaowei Yuan3-1/+35
Create a devel file names mesa-libgbm-devel for gbm Change-Id: I4c10f7f09ed035c9d9097776fc2e3acba0e2186f Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-06-19Check if stdraw is NULL before accesssubmit/tizen/20190627.071010accepted/tizen/unified/20190628.035315Zhaowei Yuan1-2/+2
Variable "stdraw" could be NULL in some case, check it before access. Change-Id: I51daed4b34f97d055363104ff0bf06867ec1374f Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-06-19close tbm_bufmgr_fd and dri2_dpy->fd after usedZhaowei Yuan1-0/+7
tbm_bufmgr_fd is got from dup(), and dri2_dpy->fd is assigned by tbm_bufmgr_fd or is received from socket, they both need to be closed after used Change-Id: I75b91408ee278e716d383ca2dbc696955245a08b Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-06-03Changed the calling order of the enqueue_buffer.submit/tizen/20190603.062347accepted/tizen/unified/20190604.014616Joonbum Ko1-3/+3
- The buffer to enqueue should be the buffer in which the gpu drawing job is completed or after flush. - If this is not guaranteed, it can lead to incorrect output. Change-Id: Ic0246ebe52031cd006d636a0a55f02a5f675f61a Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
2019-06-03Merge "Fix resize issue When evas resize window after dequeue, then draw and ↵Joonbum Ko8-3/+111
swapbuffers, window is shown with old size until next makecurrent. Add validate_drawable function to check if resize happen each time makecurrent is called." into tizen
2019-05-31Fix resize issueXuelian Bai8-3/+111
When evas resize window after dequeue, then draw and swapbuffers, window is shown with old size until next makecurrent. Add validate_drawable function to check if resize happen each time makecurrent is called. Change-Id: Ifd3a23501a99b04f9cc5156797b0563edd87b61e
2019-05-30sync wayland-egl codeXiaowei Guan3-15/+45
Change-Id: I9faadf482a236a1551f667f49c8ac7a7c4cd940c
2019-05-15egllog: add unlock call preventing the deadlocksubmit/tizen/20190515.041046accepted/tizen/unified/20190515.085011SooChan Lim1-0/+1
Change-Id: Id7ca838fc953cb4990121f42fc9a2300da82a8a0
2019-05-08Added missed break in switch statement.submit/tizen/20190508.062627accepted/tizen/unified/20190509.041005Joonbum Ko1-0/+5
Change-Id: I29b1eb04502ffd4d808fa4401733b9061d9dd618 Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
2019-05-07Re-implement _eglLog based on dlogZhaowei Yuan3-2/+36
_eglLog is a basic log function for mesa, re-implement it based on dlog here for debug purpose. Log level can be changed by setting environment variable EGL_LOG_LEVEL. Change-Id: Ib356d14d631fcda0d9c45f0e442f02981b0377be Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-05-07Fix crash when query a pbuffer surfacesubmit/tizen/20190507.001146accepted/tizen/unified/20190507.111915Xuelian Bai1-20/+22
Pbuffer is not created via TPL, so when query a pbuffer surface, we can only call _eglQuerySurface instead of TPL APIs. Change-Id: I55c7f4d06392198ae41ffd0a9d5dd23fb15bd532
2019-05-07Revert "Fix LTO build error"SooChan Lim1-4/+1
This reverts commit 149bc610e755c46e5a4b6f3780fa64340e385627. Change-Id: I3f3c88aaa05217376fa75ed72bec973948e19d7c
2019-05-03Revert "spec: exclude i586 i686 x86_64"submit/tizen/20190503.004149accepted/tizen/unified/20190503.075103SooChan Lim1-1/+1
This reverts commit 334818ff041994b8af28ad2018e22755de0fd7a4. Change-Id: Ic44b22f021c04bbadebad3029f094616e9900a02
2019-05-01Fix LTO build errorSlava Barinov1-1/+4
Change-Id: I3179cd9ffd34431748913c0f7d3742918327731d Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2019-04-29Add Pbuffer support on Tizen platformsubmit/tizen/20190429.015220accepted/tizen/unified/20190429.103817Zhaowei Yuan1-9/+45
Patch includes: 1. Add EGL_PBUFFER_BIT to surface_type if maskes match 2. Alloc local buffer when render buffer type is "FRONT_LEFT" which will be used by Pbuffer Change-Id: I8cb2b7776a334f96cf67408b81c8325bd9b46bf9 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-04-26Revert "spec: only build on arm"SooChan Lim1-0/+2
This reverts commit 00edf55f004d8f98f22af2029deacf3cad820f31. Change-Id: I7f250aa2e42b4442da2bc26069b724843acdf558
2019-04-24spec: only build on armsubmit/tizen/20190424.105733accepted/tizen/unified/20190425.111631SooChan Lim1-2/+0
2019-04-24spec: exclude i586 i686 x86_64submit/tizen/20190424.063103SooChan Lim1-1/+1
Change-Id: Ib162622f96baa764674c0839df5de00553089c18
2019-04-19add wayland-egl code for platform_waylandsubmit/tizen/20190424.023121Xiaowei Guan7-4/+194
Change-Id: Ic7b4623c24f95187bb4effa3e88f6ee691b4b0b3
2019-04-19fix weston build error and app launch errorXiaowei Guan2-6/+7
Change-Id: Iaf3a47f399d5a13fd8e9f1996ee29c3f062ee270
2019-04-19Fix build and launch error for mesa 19.0.0Xiaowei Guan4-8/+18
Change-Id: I39bfbcbbde60eb0f9f77240e23573c23d17b89be
2019-04-19EFL will change EGL_PLATFORM, to avoid conflict with EFL, so Mesa use ↵Xiaowei Guan1-1/+1
EGL_PLATFORM_MESA Change-Id: I66fe15612e7c84b2adc116be2a5796a7d4daed4f
2019-04-08Fix build error for tile format patchtizen_realXuelian Bai1-0/+2
Change-Id: I12a15b5f5e90726ec235dd2e766d4de503b2ce13
2019-04-08Add modifier in attribute list if surface flag is tiled.Xuelian Bai1-2/+30
Change-Id: I11de267b2940e0cf8aa36f0d7c2bc1719b2011b1
2019-04-08EGL: Add support for westonZhaowei Yuan2-12/+12
Add support for wayland & drm platforms which are used by weston. Select EGL platform for weston by setting environment variable: export EGL_PLATFORM=wayland Modifications to mesa.spec: Add platforms wayland and drm which is needed by weston Enable gbm and pack it into RPM package Modifications to egl_dri2.h Since tizen, drm and wayland are all supported now, remove the duplicate definition of "color_buffers" and "back" for tizen to avoid from building error. Change-Id: I339b850399c29df2b3f7698ebf1c77895ce3b463 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-04-08EGL_DRI2 : expose local_buffers for all platformsZhaowei Yuan1-3/+3
The original purpose of local_buffers is to unify similar buffers for all kinds of platforms in commit:640b6e, but it was moved into scope of HAVE_TIZEN_PLATFORM in commit:f46e50 mistakenly, so revert it and expose local_buffers for all platforms. Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com> Change-Id: I0e2a8466aed0758858e43ea872c6199ca583940e
2019-04-08platform_tizen: setup screen and extensions while initZhaowei Yuan1-0/+7
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com> Change-Id: I9e0e42fb317d5b91a49ad5ecc807d9450ad3d97c
2019-04-08platform_tizen: Fixed some build errors for supporting latest upstream code.Joonbum Ko4-6/+24
Change-Id: Ie4c4d957da63d73c82ab41a91ae24ec589ecf4ed Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
2019-04-08Release drm_fd when release tizen displayXuelian Bai3-5/+27
Change-Id: Ia08f9bfbb440be03f7a41a6d54a12e7834838ce3
2019-04-08Platform_tizen: Allocate native display for EGL_DEFAULT_DISPLAYzhaowei yuan3-1/+17
Allocate an new native display in dri2_initialize_tizen() if argument passed to eglGetDisplay() is EGL_DEFAULT_DISPLAY, or it will cause error in __tpl_wayland_egl_display_init() Change-Id: Ieb36263485d2f4276176c0b723da202bf10b78c5 Signed-off-by: zhaowei yuan <zhaowei.yuan@samsung.com>
2019-04-08egl/tizen: disable partial buffer swap settingsHackseung Lee1-2/+2
The partial buffer swap function needs to be supplemented. Instead, operated in the full buffer swap. Change-Id: Ib90fac0b51e36560b5dadd91fa23d4934b700264 Signed-off-by: Hackseung Lee <lhs@dignsys.com>
2019-04-08egl/tizen: Initialize arrays which may be used in uninitializedHoyub Lee1-3/+3
Change-Id: I48605aea5a644c6acbb37428065ecc803d34ac1e Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
2019-04-08docs: Add Tizen Binary Download Instructions for RPI3Mun, Gwan-gyeong1-0/+47
Add Tizen Binary Download Instructions for RPI3. it includes which packages should be installed with Mesa for tizen. Change-Id: Ica9cc79673f3c31e17773b649bcc2d3f851a7621 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
2019-04-08docs: add Readme for Tizen and Readme RPI3 Setup for TizenMun, Gwan-gyeong2-0/+217
Readme_for_Tizen explains howto seting up build environment for tizen and geting build dependancy packages. Readme_RPI3_Setup_for_Tizen explains How to building RPI3 kernel for tizen and downloading to tizen platform binaries to rpi3. Change-Id: I59d3b89e11e422cab97b10f26ab39d2a7955ca54 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
2019-04-08Switch off ASan for MesaSlava Barinov1-0/+1
The OpenGL drivers can no be built with ASan Change-Id: I9d6eeaf6bfccd6d683217bff3cd417d9d2f068df Signed-off-by: Slava Barinov <v.barinov@samsung.com>
2019-04-08packaging for Tizen platform.Mun, Gwan-gyeong6-2302/+390
add configuration of building and packaging for rpi3 ( vc4 gpu driver ) add udev rule files for rpi3 (vc4 drm device) Change-Id: Iae9eda987edd45f66e1e96a64a2a3583993f36f6 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com> - egl/MakeFile.am: Fixed build error. Change-Id: Ida31c435a597bee1f6c2b6affea3897bc91d2761 - spec: change configure options for x86 Change-Id: Ic501464fb73d89f224cb35f3ed04d3a9f3316e19 - spec: add ExclusiveArch Change-Id: I01b5965b832df43765606865e254bc89514b915e - add COPYING and write the license at spec file Change-Id: I14e70e10396cdff22b3df1c164618b9f46574caf - Build Error Fix for Mesa-Using Pacakging (missing ldconfig) Because mesa did not call "ldconfig" after installation, those who use mesa during build fails. Change-Id: I39afda30ba76f4f1da9f7569846d5a86994adc07
2019-04-08configure.ac: Add tizen to supported egl platformsMun, Gwan-gyeong3-3/+9
It checks tpl-egl/libtbm/libtdm packages and defines HAVE_PLATFORM_TIZEN. This feature is enabled by the config option '--with-platforms=tizen' Change-Id: I766d145a14576c2b8c85769031086505880fd720 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
2019-04-08egl_dri2: Add support for TizenMun, Gwan-gyeong7-2/+1650
Add platform_tizen.c that supports _EGL_PLATFORM_TIZEN. It works with libtpl-egl (Tizen Porting Layer for egl), libtbm(Tizen Buffer Manager) where back buffers of windows are backed by GEM objects. In Tizen a native window has a queue (tbm_surface_queue) of back buffers allocated by the WL_TBM(wayland client case, WL_TBM is abbreviation of wayland-tbm protocol) or gbm ( tizen has implements gbm with tbm) or tbm through tbm_backend. For each frame, EGL needs to dequeue the next back buffer render to the buffer enqueue the buffer After enqueuing, the buffer is no longer valid to EGL. It supports DRI image loader extension, DRI dri2 loader extension and DRI swrast loader extension. It supports EGL_NATIVE_SURFACE_TIZEN target type for eglCreateImageKHR. (https://www.khronos.org/registry/EGL/extensions/TIZEN/EGL_TIZEN_image_native_surface.txt) BindWaylandDisplayWL / UnbindWaylandDisplayWL / QueryWaylandBufferWL are overloaded because tizen platform has its own instead of WL_DRM. Referenced documents: https://www.x.org/wiki/Events/XDC2016/Program/XDC2016_Tizen_Window_System_EGL_Vulkan.pdf https://wiki.tizen.org/wiki/3.0_Porting_Guide/Graphics_and_UI/libtpl-egl https://wiki.tizen.org/wiki/TBM Change-Id: I71ae9412c91cadc5af3f3dfaa93b3534709610a3 Signed-off-by: Mun, Gwan-gyeong <kk.moon@samsung.com>
2019-03-13docs: Add SHA256 sums for 19.0.0upstream/19.0.0Dylan Baker1-1/+2
2019-03-13docs: Add release notes for 19.0.0Dylan Baker1-2/+2402
2019-03-13VERSION: bump for 19.0.0 releaseDylan Baker1-1/+1
2019-03-12anv: Fix destroying descriptor sets when pool gets resetDanylo Piliaiev1-4/+3
pool->next and pool->free_list were reset before their usage in anv_descriptor_pool_free_set Fixes: 775aabdd "anv: destroy descriptor sets when pool gets reset" Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> (cherry picked from commit 9c80be956fff4d4786a9b77c6b9d3fec67ff2377)
2019-03-12anv: destroy descriptor sets when pool gets resetJuan A. Suarez Romero1-0/+6
As stated in Vulkan spec: "Resetting a descriptor pool recycles all of the resources from all of the descriptor sets allocated from the descriptor pool back to the descriptor pool, and the descriptor sets are implicitly freed." This fixes dEQP-VK.api.descriptor_pool.* Fixes: 14f6275c92f1 "anv/descriptor_set: add reference counting for..." Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Tested-by: Clayton Craft <clayton.a.craft@intel.com> (cherry picked from commit 775aabdd01739c413da7b38e5acbde1094209bcf)
2019-03-12anv: destroy descriptor sets when pool gets destroyedTapani Pälli2-0/+18
Patch maintains a list of sets in the pool and destroys possible remaining sets when pool is destroyed. As stated in Vulkan spec: "When a pool is destroyed, all descriptor sets allocated from the pool are implicitly freed and become invalid." This fixes memory leaks spotted with valgrind: ==19622== 96 bytes in 1 blocks are definitely lost in loss record 2 of 3 ==19622== at 0x483880B: malloc (vg_replace_malloc.c:309) ==19622== by 0x495B67E: default_alloc_func (anv_device.c:547) ==19622== by 0x4955E05: vk_alloc (vk_alloc.h:36) ==19622== by 0x4956A8F: anv_multialloc_alloc (anv_private.h:538) ==19622== by 0x4956A8F: anv_CreateDescriptorSetLayout (anv_descriptor_set.c:217) Fixes: 14f6275c92f1 ("anv/descriptor_set: add reference counting for descriptor set layouts") Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit 105002bd2d6173b24f6955c22340b5bc77e029fa) Conflicts resolved by Dylan and Jason
2019-03-12intel/nir: Vectorize all IOJason Ekstrand1-0/+17
The IO scalarization pass that we run to help with linking end up turning some shader I/O such as that for tessellation and geometry shaders into many scalar URB operations rather than one vector one. To alleviate this, we now vectorize the I/O once again. This fixes a 10% performance regression in the GfxBench tessellation test that was caused by scalarizing. Shader-db results on Kaby Lake: total instructions in shared programs: 15224023 -> 15220871 (-0.02%) instructions in affected programs: 342009 -> 338857 (-0.92%) helped: 1236 HURT: 443 total spills in shared programs: 23471 -> 23465 (-0.03%) spills in affected programs: 6 -> 0 helped: 1 HURT: 0 total fills in shared programs: 31770 -> 31766 (-0.01%) fills in affected programs: 4 -> 0 helped: 1 HURT: 0 Cycles was just a lot of churn do to moves being different places. Most of the pure churn in instructions was +/- one or two instructions in fragment shaders. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107510 Fixes: 4434591bf56a "intel/nir: Call nir_lower_io_to_scalar_early" Fixes: 8d8222461f9d "intel/nir: Enable nir_opt_find_array_copies" Reviewed-by: Connor Abbott <cwabbott0@gmail.com> (cherry picked from commit 6d5d89d25a0a4299dbfcbfeca71b6c7e65ef3d45)
2019-03-12nir: Add a pass for lowering IO back to vector when possibleJason Ekstrand5-1/+392
This pass tries to turn scalar and array-of-scalar IO variables into vector IO variables whenever possible. Reviewed-by: Connor Abbott <cwabbott0@gmail.com> Cc: "19.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5ef2b8f1f2ebcdb4ffe5c98b3f4f48e584cb4b22)