Age | Commit message (Collapse) | Author | Files | Lines |
|
Makecurrent is called just before resize callback is called, so we
have to check if size is changed when drawcall.
Change-Id: I82c4f8fd1c805ad8cd9094dccb8e8430b8ef35cd
|
|
Change-Id: I78de02c5e3fe51a4240bf567749e30ce7df81782
|
|
This reverts commit e235e1fe2cc6046cac22135c9779b5630eeb8a3c.
Change-Id: Ia8d67d3b392afdb10cf28168f3a456ee008728b8
|
|
This reverts commit 50ab33c2da2203fa2b9905bb273af8838653ac2a.
Change-Id: Iefe4be0e99bf67e87d5882fbc15eb2649499ffd7
|
|
Create a devel file names mesa-libgbm-devel for gbm
Change-Id: I4c10f7f09ed035c9d9097776fc2e3acba0e2186f
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
|
|
Variable "stdraw" could be NULL in some case, check it before access.
Change-Id: I51daed4b34f97d055363104ff0bf06867ec1374f
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
|
|
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>
|
|
- 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>
|
|
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
|
|
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
|
|
Change-Id: I9faadf482a236a1551f667f49c8ac7a7c4cd940c
|
|
Change-Id: Id7ca838fc953cb4990121f42fc9a2300da82a8a0
|
|
Change-Id: I29b1eb04502ffd4d808fa4401733b9061d9dd618
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
|
|
_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>
|
|
Pbuffer is not created via TPL, so when query a pbuffer surface,
we can only call _eglQuerySurface instead of TPL APIs.
Change-Id: I55c7f4d06392198ae41ffd0a9d5dd23fb15bd532
|
|
This reverts commit 149bc610e755c46e5a4b6f3780fa64340e385627.
Change-Id: I3f3c88aaa05217376fa75ed72bec973948e19d7c
|
|
This reverts commit 334818ff041994b8af28ad2018e22755de0fd7a4.
Change-Id: Ic44b22f021c04bbadebad3029f094616e9900a02
|
|
Change-Id: I3179cd9ffd34431748913c0f7d3742918327731d
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
|
|
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>
|
|
This reverts commit 00edf55f004d8f98f22af2029deacf3cad820f31.
Change-Id: I7f250aa2e42b4442da2bc26069b724843acdf558
|
|
|
|
Change-Id: Ib162622f96baa764674c0839df5de00553089c18
|
|
Change-Id: Ic7b4623c24f95187bb4effa3e88f6ee691b4b0b3
|
|
Change-Id: Iaf3a47f399d5a13fd8e9f1996ee29c3f062ee270
|
|
Change-Id: I39bfbcbbde60eb0f9f77240e23573c23d17b89be
|
|
EGL_PLATFORM_MESA
Change-Id: I66fe15612e7c84b2adc116be2a5796a7d4daed4f
|
|
Change-Id: I12a15b5f5e90726ec235dd2e766d4de503b2ce13
|
|
Change-Id: I11de267b2940e0cf8aa36f0d7c2bc1719b2011b1
|
|
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>
|
|
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
|
|
Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Change-Id: I9e0e42fb317d5b91a49ad5ecc807d9450ad3d97c
|
|
Change-Id: Ie4c4d957da63d73c82ab41a91ae24ec589ecf4ed
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
|
|
Change-Id: Ia08f9bfbb440be03f7a41a6d54a12e7834838ce3
|
|
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>
|
|
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>
|
|
Change-Id: I48605aea5a644c6acbb37428065ecc803d34ac1e
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
|
|
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>
|
|
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>
|
|
The OpenGL drivers can no be built with ASan
Change-Id: I9d6eeaf6bfccd6d683217bff3cd417d9d2f068df
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
|
|
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
|
|
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>
|
|
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>
|
|
|
|
|
|
|
|
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)
|
|
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)
|
|
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
|
|
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)
|
|
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)
|