summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-02-13meson/v3d: replace partial list of nir dep files with idep_nir_headerssandbox/akazmin/tizen6_asanEric Engestrom1-2/+2
"partial" because `nir_intrinsics_h` was missing. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Cherry-picked from upstream: f812cbfd884b82c6d05f3c55d216fcd37caa68b1 Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
2020-01-07Fixed to close GEM handle of renderonly_scanout.submit/tizen/20200107.093413accepted/tizen/unified/20200109.065452Joonbum Ko1-0/+7
Change-Id: Ie7e29567aa0f504cef4c08e72a88fa9cc5a9a183 Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
2019-12-12Handle 1x1 issue for driimageXuelian3-4/+31
For RPI4, render node is used, so buffer is allocated on another device, when 1x1 issue happen, we need to make sure if driimage size is changed, then created new if yes. Change-Id: I9b6474381c7b855c0e4bf0189a8838a1dcfa30d0 Signed-Off-by: Xuelian Bai <xuelian.bai@samsung.com>
2019-12-09Remove extra build requires for mesaXuelian1-4/+2
We don't need python, just python3 is enought. Python-mako and python3-mako may conflict in asan build Change-Id: I6964fec9ece05befa9540c75540f5818745a0c0d Signed-Off-by: Xuelian Bai <xuelian.bai@samsung.com>
2019-11-12Build: fix a build warningsubmit/tizen/20191112.072251accepted/tizen/unified/20191112.081843Zhaowei Yuan1-0/+2
Local variables msg and ret will not be used when platform is Tizen which causesd a build warning, fix it. Change-Id: Ie32fa1470cab6604e8dfdc2f8fcbf76e4a744b2c Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-11-12platform_tizen: free driver_name if initialization goes wrongZhaowei Yuan1-4/+3
Mallocated driver_name needs to be freed if following steps for initialization goes wrong, whether hw_accel if set or not Change-Id: I3693744d4e486ffafe3366adf456ec0fcb3ea343 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-11-12Build: fix building issue for i586 and X86_64Zhaowei Yuan1-0/+2
Options dri-drivers and vulkan-drivers need to be set as empty explicitly for i586 and X86_64 platforms Change-Id: Id1dc9fa49a20cb4c54d43575e1177c1d6b369c2f Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-11-07Build: switch build tool from make to mesonsubmit/tizen/20191112.004552Zhaowei Yuan6-27/+41
Makefiles will be removed from mesa and 'make' will be discarded in the next verion, replace 'make' with 'meson' which is an new build tool. Change-Id: I95f1ffc00e25fee5be7cae00a2385d15855b7139 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
2019-11-04Fix display issue on RPI4Xuelian Bai7-87/+120
RPI4 has seperated devices for display and render, so when init Tizen, we open /dev/dri/renderD128 and init v3d screen as renderonly. Change-Id: Id03424d1bf72546ee0b5368eb3dd31b882eca158
2019-09-05Implement dlog for mesa mainZhaowei Yuan2-2/+29
Log API for mesa main module are all implemented in file src/mesa/main/error.c, re-implement them based on dlog for debug convenience Change-Id: I8bd02b2f8705ea92da2657d0ca34f4ef1d8ae707 Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
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