Age | Commit message (Collapse) | Author | Files | Lines |
|
Call tpl_surface_validate before dequeue to check if it needs to be reset.
Change-Id: I346ca23f4d85c7f8e3f174ac79a9bdf83cf7652e
Signed-off-by: Mikhail Labiuk <m.labiuk@samsung.com>
|
|
Currently this format can be used only for output images
which would be product of rendering.
Change-Id: Ic3a7c5fe2e2c528059dc41a4df868268720c94a9
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
|
|
- set internal format GL_RGBA as default
for texture images;
- fix creating of dummy VIGS surfaces while
eglCreatePbufferSurface is called with zero sizes.
Change-Id: Ic08c464fc010b9b01a5b893f392d589b531bb4bf
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
|
|
libtbm-vigs provides the drm_dev to get the vigs_drm_device.
yagl can also get the vigs_surface through the tbm_bo_get_handle.
Change-Id: Iba180f60b101886ae940b2eb1f5b7c5617d5eda9
|
|
The GLSL patchers did not work correctly with a statement like bellow:
#define TextureLookup texture2D
The token 'texture2D' in the comment is not parsed with desired result.
So, add a new rule for that situation.
Change-Id: I84ae9166c0d322baf48d1c20bb74a1c27172c59f
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|
|
tbm_surface is dequeued from tpl_surface,
but window does not want to use it(window resized or destroyed),
then we have to cancel it to complete destroying using below API.
- tpl_surface_cancel_dequeued_buffer(tpl_surface_t *, tbm_surface_h)
Change-Id: Ib4d5798d29111aa0ef0b74e9e3986abdf2665c4d
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
|
|
Change-Id: Icf94edd832657527f940c0815653f0365e47d166
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
|
|
Change-Id: I9ee0fd94cb773d326a18074aa99d4576d5ac9639
Signed-off-by: Vladislav Andresov <v.andresov@partner.samsung.com>
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
This is needed in order to be able to create fences in transport layer
and avoid race conditions when invoking yagl_host_* routines with return
values. Previously fence_dpy was assigned only in eglGetDisplay. Though
the app may make EGL calls from auxiliary threads which will have
fence_dpy uninitialized.
Change-Id: Ibe66030cb4a30d189750d1ab233164cfea60b339
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
yagl_host_handle is defined as uint32_t, while EGL image client handle
(either EGLImageKHR or GLeglImageOES) is void *. On x64 arch the cast to
yagl_host_handle will lead to data truncation and as a result the image
may not be found.
Change-Id: I02e8a14326c635d0f6bcb0e9b289a0467c846f1f
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
The call sequence like bellow was causing flickering:
glBindTexture(GL_TEXTURE_EXTERNAL_OES, tex);
glBindTexture(GL_TEXTURE_2D, 0);
glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, img);
Eventually zero texture was used on the host side since external
textures are currently handled as GL_TEXTURE_2D.
Change-Id: I9d8480df7dd5f44f49f31e170de6f478c663f8c3
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
This patch resolves the issue with widgets rendered upside-down. Tizen
platfrom expects 'yinvert == 1' for EGL images created from tizen sfc.
Change-Id: If34b0c717f705a13351d94b50361b2a6d5945998
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Driver path can be either /usr/lib/driver or /usr/lib64/driver.
Change-Id: I133ea4aa0152f396d3c7ebd4b61dd9fbac8bbfb5
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
The lib path in the 64-bit architecture was missing.
I modify the lib path.
Change-Id: I65e0ebbce42a782605b4d2c764fc5ba596603db0
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|
|
Address Sanitizer support requires adding pthread in the end of list
Change-Id: I8db1b86e394002baf4418b7494d7497047b65be8
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
|
|
With EFL a 1x1 surface is created at first and then it is resized. There
is a need to handle such situation before drawing GL stuff and
invalidate the renderer.
Change-Id: Ic11cbae921d1f486f1a81fa1633c6f64d5673efe
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
This format requires convertion to ARGB.
Change-Id: Ia9ade3d84b3d061c5f713457e6ac0e2cbae31418
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
When creating EGL image from tizen surface, the underlying gem may have
no name assigned. This ends up with client handle set to zero. The commit
fixes such an issue.
Change-Id: Ica907a251d9a64a8661232e2718930caa052e0a3
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
CoreGL supports libGLESv1 so emulator-yagl does not need to make link of libGLESv1_CM
Change-Id: I68ff61626524c8ffcd82733c83bcc7604d061256
|
|
Change-Id: Iffc998df2d3a1400bd3d18f5b28b6968ecd19400
|
|
If emulator is run without host GPU acceleration, yagl will likely
terminate GL apps on initialization failure. In order to handle the
situation propely, dummy GL libs are now packed along with yagl. When
emulator boots up, a script will check if /dev/yagl is present and
setup the symlinks appropriately.
Change-Id: I6715c5798b0c2a6cdef16a24a1e3c8786f6aa36f
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Ponters cannot be cast directly to integers of different size with
'-Werror=pointer-to-int-cast' gcc option. The commit fixes this issue
when making a build with debug logs enabled.
Change-Id: I401e5230af0f08b97a3597c05368f4859ed9d949
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES is now accepted as parameter name in
glGetTexParameterfv.
Change-Id: I7bdc3635262b28826f225395a76048d897710eb6
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
- glLinkProgram: linking should fail if vertex and fragment
shaders are not both present in the program object.
- glBlitFramebuffer: if the source and destination buffers
are identical, an INVALID_OPERATION error should be generated.
NOTE: valid only for OGLES3.0. Not the case with e.g.
GL_ANGLE_framebuffer_blit.
Change-Id: I0fdc4e383e32e9cfcb9028f4b279b8acdb8410c7
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
- COPYING: XFree86 -> MIT
- LICENSE: LGPL3.0 -> LGPL3.0+
Change-Id: I90e9129f0098c38ef30eeb409dc627e2df70c6dd
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
The former external sampler hadnling did not work correctly with
statements like bellow:
#define SamplerType samplerExternalOES
Using a #define construct in the header for samplerExternalOES seems
more appropriate rather than substituing every occurrence.
Change-Id: If1c654046ad78011a5148013889f5dc93882a6a9
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
EGL images created from tbm surfaces appear flipped vertically.
In case of planar data we have to make conversion anyway so it
can be handled as well.
Change-Id: I8242bdffdd1f0340b616cb1f5912ea51a5c27026
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Currently external textures are handled as 2d textures since
host will unlikely recognize GL_TEXTURE_EXTERNAL_OES as a valid
target. The same applies to GLSL (i.e. sampler2D is used instead
of samplerExternalOES). Color conversion is performed in software
and it is done when glEGLImageTargetTexture2DOES function is
called. It is an initial implementation and at the moment it is not
fully conformant.
Change-Id: I6a781d1062a2f5373e8ff507a5279c58ed29b042
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
The macro YAGL_LOG_FUNC_SET initilizes logger specific local vars like
pid, tid, etc. There is no need to use it if the function actually does
not produce any logs, since it may lead to 'unused variable' compiler
errors.
Change-Id: I9f9c2ccba7b8364d60891a1748fc62d5b2516fbf
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Change-Id: I53b79769401aae2a1e8a7f9e58637473f1cd3299
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
spec file
Change-Id: I27bc19e40273bf84f505001baadbd169ee80272f
|
|
This patch ports YAGL to TIZEN platform as an
initial version, creates following files:
EGL/tizen/yagl_tizen_display.c
EGL/tizen/yagl_tizen_display.h
EGL/tizen/yagl_tizen_native_image.c
EGL/tizen/yagl_tizen_native_image.h
EGL/tizen/yagl_tizen_pbuffer.c
EGL/tizen/yagl_tizen_pbuffer.h
EGL/tizen/yagl_tizen_platform.c
EGL/tizen/yagl_tizen_platform.h
EGL/tizen/yagl_tizen_window.c
EGL/tizen/yagl_tizen_window.h
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
Change-Id: I639dc736f242096ba417054576453ea941113eea
|
|
Change-Id: I970f8d859ba8a1d565219f304bbd2451feff2194
|
|
Change-Id: I4fda882a7ea7f3604025d4c5574dcb17c530ef7f
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
OES_compressed_ETC1_RGB8_texture spec says:
INVALID_OPERATION is generated by CompressedTexSubImage2D,
TexSubImage2D, or CopyTexSubImage2D if the texture image <level>
bound to <target> has internal format ETC1_RGB8_OES.
Currently this error check causes problems with some apps so
temporarly disable it as a workaround.
Change-Id: I8bdc6f2b7a7b65730d4dee9a8a91b9f6ce465485
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
This reverts commit 246a7db9c03797276b650b955139210c04f80e84.
The race condition was occuring because of improper glFinish
call handling with surfaceless context. The commit also adds
explicit transport flushing to ensure all the rendering commands
are offloaded to the host in this case.
Change-Id: Ic70d7f82904c1636acc495fb2e500115f62c6125
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
This is a workaround for web-tct. There seems to be a race
condition with these tests (i.e. they are rendering from
several threads without ensuring GL synchronization). The
commit should be reverted as soon as a proper fix is applied.
Change-Id: I095e76f0d9c84e7623035ca24817cfc98e7a2ae5
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
EGL/GLES vendor-specific drivers are located in /usr/lib/driver
when emulator runs with coregl. This needs to be considered when
loading symbols internally.
Change-Id: I6461ead2c5d6d66cbf2cc1fd25ee53887981df8a
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Currently it is needed to make Tizen 3.0 feature tests pass
in emulator. They appear to be using eglCreatePbufferSurface(...)
for offscreen rendering. I am not sure if such functionality is
really needed with Wayland (in fact it is not supported even in
Mesa). Anyway I have not found any spec saying that Wayland should
fail with this call so for the moment some draft implementation
should be okay I think.
Change-Id: I01372121c0e080e0007c69a12d4b97ad8df6fc04
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Change-Id: I781453b800d376a16294921984e2cb2b36f1411b
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
32bit: install /usr/lib
64bit: install /usr/lib64
Change-Id: I6c50ea39a7eeaa17abe188aaa48d5ee61615529c
|
|
Change-Id: I973a4ef3f89c1b26e52772c5bc386726d61d326c
|
|
Change-Id: I99ef17705e7a1197f8555116f2c2a386f5726a03
|
|
Coregl package provide libGLES, liEGL wrapper. and Coregl dynamically load real driver from /usr/lib/driver
Remove GL/EGL header files from devel package. : CoreGL provide GL/EGL header file.
Remove build script of X env.
Change-Id: I3015c5ee2828b94cd1525b98db9e7acba4cf5762
|
|
The EGL_KHR_platform_gbm extension has specific behavior
for the EGL_NATIVE_VISUAL_ID.
There is following contents in the EGL officail size,
(https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_platform_gbm.txt)
New Behavior section
"For each EGLConfig that belongs to the GBM platform, the
EGL_NATIVE_VISUAL_ID attribute is a GBM color format, such as
GBM_FORMAT_XRGB8888. "
The EFL EVAS in Tizen requires the GBM_FORMAT_ARGB8888.
And YaGL can support this format. So returns it.
This is W/A patch. Must be resolved correclty.
Change-Id: I402ebb20d17bf1a119ca09154519d57305e539a7
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|
|
For the 64bit addressing
(commit id: 233c1f2ea5be0b1d160b64856e33365e0ab58313)
Be sure synchronize with the kernel & QEMU packages.
Change-Id: Ia3537a5d5e13f1a0764c20105dea576c364b826d
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|
|
Removed a usage of the deprecated function, wl_client_add_resource'
And added a compilation option, '-Werror'.
Change-Id: I20fb58f9ab26c9a1f359ec8f4f5d56c261778bd7
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|
|
Tizen 3.0 supports a 64bit guest.
However current yagl is implemented by assumed to use 32bit address.
So modify the address related parts.
The qemu device sources were also modifed.
And remove the warnings:
-Wint-to-pointer-cast/-Wpointer-to-int-cast/-Wunused-variables
TODO: fix the warning - 'wl_client_add_resource' is deprecated
Change-Id: Id3875eefa012240df34fffbc7d12f36c9584b4f1
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|
|
This workaround appears no longer needed since the corresponding
fix has been applied to libevas. Besides it seems to cause
problems with cairo.
This reverts commit 1a1d13934f4bad7b779cd6093c0f00cc9f36ec03.
Change-Id: Iad9af1b3bcd6c2756963ebd0e10e97879245d496
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
|
|
Modified to provide the correct license information.
Change-Id: Ie0689f070e6e6162132c07df6603a721c3fca453
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
|