[Mesa-dev] [PATCH] glsl: Fix typo nagivation -> navigation

2017-11-25 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/compiler/glsl/ir_hierarchical_visitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/ir_hierarchical_visitor.h b/src/compiler/glsl/ir_hierarchical_visitor.h index 824b05e73d..5f5acd041b 100644

[Mesa-dev] [PATCH] egl/wayland: add dri2_wl_free_buffers() helper (v3)

2017-11-15 Thread Gwan-gyeong Mun
This deduplicates free routines of color_buffers array. v2: - Add clear_all argument to check clearing all of color_buffers or not. - Fixes from Eric's review: a) polish check routine of check_lock and color_buffers[i].locked b) move 'native_buffer = NULL' to avoid leaking locked buffers

[Mesa-dev] [PATCH] egl: add dri2_surface_free_image() helper (v4)

2017-11-15 Thread Gwan-gyeong Mun
To share common free DRIimage code. In preparation to adding of new platform which uses this helper. v2: - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new helper function and use them to replace the old code in the same

[Mesa-dev] [PATCH] egl: refactor color_buffers structure for deduplicating (v2)

2017-11-15 Thread Gwan-gyeong Mun
This is added for preventing adding of new color buffers structure and back* when new platform backend is added. This refactoring separates out the common and platform specific bits. This makes odd casting in the platform_foo.c but it prevents adding of new ifdef magic. Because of color_buffers

[Mesa-dev] [PATCH] nir: fix a typo

2017-11-06 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/compiler/nir/nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 87c725625d..0174c30504 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@

[Mesa-dev] [PATCH v5 7/9] egl: add dri2_surface_free_image() helper (v4)

2017-11-03 Thread Gwan-gyeong Mun
To share common free DRIimage code. In preparation to adding of new platform which uses this helper. v2: - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new helper function and use them to replace the old code in the same

[Mesa-dev] [PATCH v4 9/9] egl/wayland: add dri2_wl_free_buffers() helper (v3)

2017-11-02 Thread Gwan-gyeong Mun
This deduplicates free routines of color_buffers array. v2: - Add clear_all argument to check clearing all of color_buffers or not. - Fixes from Eric's review: a) polish check routine of check_lock and color_buffers[i].locked b) move 'native_buffer = NULL' to avoid leaking locked buffers

[Mesa-dev] [PATCH v4 8/9] egl: add dri2_surface_get_front_image() helper (v4)

2017-11-02 Thread Gwan-gyeong Mun
To share common get and create dri_image_front code. In preparation to adding of new platform which uses this helper. v2: - Remove unneeded ifdef magic - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new helper function and use

[Mesa-dev] [PATCH v4 7/9] egl: add dri2_surface_free_image() helper (v4)

2017-11-02 Thread Gwan-gyeong Mun
To share common free DRIimage code. In preparation to adding of new platform which uses this helper. v2: - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new helper function and use them to replace the old code in the same

[Mesa-dev] [PATCH v4 4/9] egl: add a missed initialization of buffer age.

2017-11-02 Thread Gwan-gyeong Mun
It add an initialization of buffer age on dri2_surface_set_back_buffer(). Fixes from Emil's review - Split out separated patch for adding of missed initialization of buffer age. [1] [1] https://lists.freedesktop.org/archives/mesa-dev/2017-October/173129.html Signed-off-by: Mun Gwan-gyeong

[Mesa-dev] [PATCH v4 5/9] egl: add going out of the loop when color_buffer is set.

2017-11-02 Thread Gwan-gyeong Mun
If color_buffer is set once, we don't need to set a same native buffer to remained free slot of color_buffers. So we can go out of the loop when color_buffer is set first. Fixes from Emil's review - Add setting "updated" and bailing out when the color_buffer is set.[1] [1]

[Mesa-dev] [PATCH v4 6/9] egl: add dri2_surface_update_age() helper (v3)

2017-11-02 Thread Gwan-gyeong Mun
To share common update buffer age code. This updates old buffer's age and sets current back buffer's age to 1. In preparation to adding of new platform which uses this helper. v2: - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new

[Mesa-dev] [PATCH v4 2/9] egl: refactor color_buffers structure for deduplicating (v2)

2017-11-02 Thread Gwan-gyeong Mun
From: "Mun, Gwan-gyeong" This is added for preventing adding of new color buffers structure and back* when new platform backend is added. This refactoring separates out the common and platform specific bits. This makes odd casting in the platform_foo.c but it prevents adding

[Mesa-dev] [PATCH v4 3/9] egl: add dri2_surface_set_back_buffer() helper (v3)

2017-11-02 Thread Gwan-gyeong Mun
To share common record buffers and update back buffer code. This records all the buffers created by each platform's native window and update back buffer for updating buffer's age in swap_buffers. In preparation to adding of new platform which uses this helper. v2: - Remove unneeded ifdef magic

[Mesa-dev] [PATCH v4 1/9] egl: add dri2_surface_fixup() helper (v3)

2017-11-02 Thread Gwan-gyeong Mun
From: "Mun, Gwan-gyeong" To share common free outdated buffers and update size code. This compares width and height arguments with current egl surface dimension, if the compared surface dimension is differ, then it free local buffers and updates dimension. In preparation to

[Mesa-dev] [PATCH v5 10/10] docs: add a high level info about Tizen / Tizen Porting Layer (TPL) for EGL / Tizen Buffer Manager (TBM) / etc (v2)

2017-10-25 Thread Gwan-gyeong Mun
It gives a quick overview and references of developing OpenGLES / EGL Driver for Tizen. v2: - Fixes from Eric's review: Change links of Setup build environment for Tizen (Raspberry Pi 3) and Tizen Binary Download Instructions for Raspberry Pi 3 to `tizen-` prefixed pages. - Add Setup

[Mesa-dev] [PATCH v5 09/10] egl/tizen: add support of dri_image_loader (v3)

2017-10-25 Thread Gwan-gyeong Mun
It adds support of dri_image_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android's. It adds dri_image_back/dri_image_back member variables to dri_egl_surface for a management of back/front buffers. v2: - Fixes from Emil's review:

[Mesa-dev] [PATCH v5 08/10] egl/tizen: add EGL_NATIVE_SURFACE_TIZEN target of eglCreateImageKHR()

2017-10-25 Thread Gwan-gyeong Mun
It adds TIZEN_image_native_surface extension string to _EGLExtensions. And it adds a routine of creating an EGLImage from a tbm_surface. - section overview from https://www.khronos.org/registry/EGL/extensions/TIZEN/EGL_TIZEN_image_native_surface.txt "Tizen Buffer Manager (TBM) is a

[Mesa-dev] [PATCH v5 06/10] egl/tizen: add tizen specific implementations for BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL (v2)

2017-10-25 Thread Gwan-gyeong Mun
Tizen platform (actually WL_TBM protocol) internally processes similiar actions such as mesa's BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL. So the platform_tizen.c needs to implemment BindWaylandDisplayWL, UnbindWaylandDisplayWL and QueryWaylandBufferWL apart from mesa's. -

[Mesa-dev] [PATCH v5 05/10] egl/tizen: add support of dri2_loader (v3)

2017-10-25 Thread Gwan-gyeong Mun
It adds support of dri2_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android. And it implements a query buffer age extesion for tizen and turn on swap_buffers_with_damage extension. - it add color buffer related member variables to

[Mesa-dev] [PATCH v5 07/10] egl/tizen: add tizen specific implementation for EGL_WAYLAND_BUFFER_WL target of eglCreateImageKHR() (v2)

2017-10-25 Thread Gwan-gyeong Mun
In the tizen platform, a wl_buffer wraps a tbm_surface. The tbm_surface contains gem name or prime fd. For creating dri_image, we need to extract the tbm_surface from the wl_buffer and we use tpl_display_get_buffer_from_native_pixmap() api for that. v2: a) Add switch's default case to return

[Mesa-dev] [PATCH v5 04/10] configure.ac: Add tizen to supported platforms (v2)

2017-10-25 Thread Gwan-gyeong Mun
It checks tpl-egl/libtbm/libtdm packages and defines HAVE_PLATFORM_TIZEN. This feature is enabled by the config option '--with-platforms=tizen' v2: Fixes from Emil's review: - Add require_libdrm to tizen platform Signed-off-by: Mun Gwan-gyeong --- configure.ac | 10

[Mesa-dev] [PATCH v5 03/10] egl/tizen: add support of the swrast related features for tizen platform (v2)

2017-10-25 Thread Gwan-gyeong Mun
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Gwan-gyeong Mun <elong...@gmail.com>

[Mesa-dev] [PATCH v5 00/10] new series of Mesa for Tizen

2017-10-25 Thread Gwan-gyeong Mun
Hi, These Patch v5 series modified with new helper function series [1]. These series only have mesa for tizen feature. [1] https://patchwork.freedesktop.org/series/32577/ Thanks, Gwan-gyeong. Gwan-gyeong Mun (10): egl: add a treatment of tizen platform on egl display (v2) egl/dri2: Add

[Mesa-dev] [PATCH v5 02/10] egl/dri2: Add some member variables for tizen platform on dri2_egl_display and dri2_egl_surface (v2)

2017-10-25 Thread Gwan-gyeong Mun
It adds some member variables for tizen platform on dri2_egl_display and dri2_egl_surface. - tpl_display stores a object which encapsulates native disply (wl_display, gbm_device, tbm_bufmgr) for tizen platfom. - native_win stores native window (wl_surface, gbm_surface,

[Mesa-dev] [PATCH v5 01/10] egl: add a treatment of tizen platform on egl display (v2)

2017-10-25 Thread Gwan-gyeong Mun
It adds a _EGL_PLATFORM_TIZEN enum value to _EGLPlatformType for tizen platform. It adds a detecting routine of tizen platform to _eglNativePlatformDetectNativeDisplay() and _eglGetNativePlatform(). - As tizen platform internally distinguishes native displays of tbm, drm/gbm and wayland

[Mesa-dev] [PATCH v3 04/10] egl: add a missed initialization of buffer age.

2017-10-24 Thread Gwan-gyeong Mun
It add an initialization of buffer age on dri2_surface_set_back_buffer(). Fixes from Emil's review - Split out separated patch for adding of missed initialization of buffer age. [1] [1] https://lists.freedesktop.org/archives/mesa-dev/2017-October/173129.html Signed-off-by: Mun Gwan-gyeong

[Mesa-dev] [PATCH v3 09/10] egl: add dri2_surface_get_front_image() helper (v3)

2017-10-24 Thread Gwan-gyeong Mun
To share common get and create dri_image_front code. In preparation to adding of new platform which uses this helper. v2: - Remove unneeded ifdef magic - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new helper function and use

[Mesa-dev] [PATCH v3 10/10] egl/wayland: add dri2_wl_free_buffers() helper (v2)

2017-10-24 Thread Gwan-gyeong Mun
This deduplicates free routines of color_buffers array. v2: - Add clear_all argument to check clearing all of color_buffers or not. - Fixes from Eric's review: a) polish check routine of check_lock and color_buffers[i].locked b) move 'native_buffer = NULL' to avoid leaking locked buffers

[Mesa-dev] [PATCH v3 08/10] egl: add dri2_surface_destroy_front_image() helper (v3)

2017-10-24 Thread Gwan-gyeong Mun
To share common destroy dri_image_front code. In preparation to adding of new platform which uses this helper. v2: - Move dri_image_front to outside of android ifdef block for removing of ifdef magic on dri2_egl_surface_destroy_image_front(). - Fixes from Eric's review: a) Split out

[Mesa-dev] [PATCH v3 03/10] egl: add dri2_surface_set_back_buffer() helper (v3)

2017-10-24 Thread Gwan-gyeong Mun
To share common record buffers and update back buffer code. This records all the buffers created by each platform's native window and update back buffer for updating buffer's age in swap_buffers. In preparation to adding of new platform which uses this helper. v2: - Remove unneeded ifdef magic

[Mesa-dev] [PATCH v3 07/10] egl: add dri2_surface_destroy_back_image() helper (v3)

2017-10-24 Thread Gwan-gyeong Mun
To share common destroy dri_image_back code. In preparation to adding of new platform which uses this helper. v2: - Move dri_image_back to outside of android ifdef block for removing of ifdef magic on dri2_egl_surface_destroy_image_back(). - Fixes from Eric's review: a) Split out series

[Mesa-dev] [PATCH v3 02/10] egl: refactor color_buffers structure for deduplicating (v2)

2017-10-24 Thread Gwan-gyeong Mun
From: "Mun, Gwan-gyeong" This is added for preventing adding of new color buffers structure and back* when new platform backend is added. This refactoring separates out the common and platform specific bits. This makes odd casting in the platform_foo.c but it prevents adding

[Mesa-dev] [PATCH v3 06/10] egl: add dri2_surface_update_age() helper (v3)

2017-10-24 Thread Gwan-gyeong Mun
To share common update buffer age code. This updates old buffer's age and sets current back buffer's age to 1. In preparation to adding of new platform which uses this helper. v2: - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new

[Mesa-dev] [PATCH v3 05/10] egl: add going out of the loop when color_buffer is set.

2017-10-24 Thread Gwan-gyeong Mun
If color_buffer is set once, we don't need to set a same native buffer to remained free slot of color_buffers. So we can go out of the loop when color_buffer is set first. Fixes from Emil's review - Add setting "updated" and bailing out when the color_buffer is set.[1] [1]

[Mesa-dev] [PATCH v3 01/10] egl: add dri2_surface_fixup() helper (v3)

2017-10-24 Thread Gwan-gyeong Mun
From: "Mun, Gwan-gyeong" To share common free outdated buffers and update size code. This compares width and height arguments with current egl surface dimension, if the compared surface dimension is differ, then it free local buffers and updates dimension. In preparation to

[Mesa-dev] [PATCH v4 01/10] egl: add a treatment of tizen platform on egl display (v2)

2017-10-06 Thread Gwan-gyeong Mun
It adds a _EGL_PLATFORM_TIZEN enum value to _EGLPlatformType for tizen platform. It adds a detecting routine of tizen platform to _eglNativePlatformDetectNativeDisplay() and _eglGetNativePlatform(). - As tizen platform internally distinguishes native displays of tbm, drm/gbm and wayland

[Mesa-dev] [PATCH v4 05/10] egl/tizen: add support of dri2_loader (v3)

2017-10-06 Thread Gwan-gyeong Mun
It adds support of dri2_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android. And it implements a query buffer age extesion for tizen and turn on swap_buffers_with_damage extension. - it add color buffer related member variables to

[Mesa-dev] [PATCH v4 04/10] configure.ac: Add tizen to supported platforms (v2)

2017-10-06 Thread Gwan-gyeong Mun
It checks tpl-egl/libtbm/libtdm packages and defines HAVE_PLATFORM_TIZEN. This feature is enabled by the config option '--with-platforms=tizen' v2: Fixes from Emil's review: - Add require_libdrm to tizen platform Signed-off-by: Mun Gwan-gyeong --- configure.ac | 10

[Mesa-dev] [PATCH v4 10/10] docs: add a high level info about Tizen / Tizen Porting Layer (TPL) for EGL / Tizen Buffer Manager (TBM) / etc (v2)

2017-10-06 Thread Gwan-gyeong Mun
It gives a quick overview and references of developing OpenGLES / EGL Driver for Tizen. v2: - Fixes from Eric's review: Change links of Setup build environment for Tizen (Raspberry Pi 3) and Tizen Binary Download Instructions for Raspberry Pi 3 to `tizen-` prefixed pages. - Add Setup

[Mesa-dev] [PATCH v4 09/10] egl/tizen: add support of dri_image_loader (v3)

2017-10-06 Thread Gwan-gyeong Mun
It adds support of dri_image_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android's. It adds dri_image_back/dri_image_back member variables to dri_egl_surface for a management of back/front buffers. v2: - Fixes from Emil's review:

[Mesa-dev] [PATCH v4 00/10] Mesa for Tizen serises

2017-10-06 Thread Gwan-gyeong Mun
060/ https://patchwork.freedesktop.org/patch/181057/ https://patchwork.freedesktop.org/patch/181058/ https://patchwork.freedesktop.org/patch/181061/ https://patchwork.freedesktop.org/patch/181062/ Gwan-gyeong Mun (10): egl: add a treatment of tizen platform on egl display (v2) egl/dri2: Add s

[Mesa-dev] [PATCH v4 07/10] egl/tizen: add tizen specific implementation for EGL_WAYLAND_BUFFER_WL target of eglCreateImageKHR() (v2)

2017-10-06 Thread Gwan-gyeong Mun
In the tizen platform, a wl_buffer wraps a tbm_surface. The tbm_surface contains gem name or prime fd. For creating dri_image, we need to extract the tbm_surface from the wl_buffer and we use tpl_display_get_buffer_from_native_pixmap() api for that. v2: a) Add switch's default case to return

[Mesa-dev] [PATCH v4 06/10] egl/tizen: add tizen specific implementations for BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL (v2)

2017-10-06 Thread Gwan-gyeong Mun
Tizen platform (actually WL_TBM protocol) internally processes similiar actions such as mesa's BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL. So the platform_tizen.c needs to implemment BindWaylandDisplayWL, UnbindWaylandDisplayWL and QueryWaylandBufferWL apart from mesa's. -

[Mesa-dev] [PATCH v4 03/10] egl/tizen: add support of the swrast related features for tizen platform (v2)

2017-10-06 Thread Gwan-gyeong Mun
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Gwan-gyeong Mun <elong...@gmail.com>

[Mesa-dev] [PATCH v4 08/10] egl/tizen: add EGL_NATIVE_SURFACE_TIZEN target of eglCreateImageKHR()

2017-10-06 Thread Gwan-gyeong Mun
It adds TIZEN_image_native_surface extension string to _EGLExtensions. And it adds a routine of creating an EGLImage from a tbm_surface. - section overview from https://www.khronos.org/registry/EGL/extensions/TIZEN/EGL_TIZEN_image_native_surface.txt "Tizen Buffer Manager (TBM) is a

[Mesa-dev] [PATCH v4 02/10] egl/dri2: Add some member variables for tizen platform on dri2_egl_display and dri2_egl_surface (v2)

2017-10-06 Thread Gwan-gyeong Mun
It adds some member variables for tizen platform on dri2_egl_display and dri2_egl_surface. - tpl_display stores a object which encapsulates native disply (wl_display, gbm_device, tbm_bufmgr) for tizen platfom. - native_win stores native window (wl_surface, gbm_surface,

[Mesa-dev] [PATCH v2 7/8] egl: add dri2_egl_surface_get_image_front() helper (v2)

2017-10-06 Thread Gwan-gyeong Mun
To share common get and create dri_image_front code. In preparation to adding of new platform which uses this helper. v2: - Remove unneeded ifdef magic - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new helper function and use

[Mesa-dev] [PATCH v2 6/8] egl: add dri2_egl_surface_destroy_image_front() helper (v2)

2017-10-06 Thread Gwan-gyeong Mun
To share common destroy dri_image_front code. In preparation to adding of new platform which uses this helper. v2: - Move dri_image_front to outside of android ifdef block for removing of ifdef magic on dri2_egl_surface_destroy_image_front(). - Fixes from Eric's review: a) Split out

[Mesa-dev] [PATCH v2 8/8] egl/wayland: add dri2_wl_free_buffers() helper

2017-10-06 Thread Gwan-gyeong Mun
This deduplicates free routines of color_buffers array. Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_wayland.c | 60 + 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c

[Mesa-dev] [PATCH v2 5/8] egl: add dri2_egl_surface_destroy_image_back() helper (v2)

2017-10-06 Thread Gwan-gyeong Mun
To share common destroy dri_image_back code. In preparation to adding of new platform which uses this helper. v2: - Move dri_image_back to outside of android ifdef block for removing of ifdef magic on dri2_egl_surface_destroy_image_back(). - Fixes from Eric's review: a) Split out series

[Mesa-dev] [PATCH v2 2/8] egl: refactor color_buffers structure for deduplicating

2017-10-06 Thread Gwan-gyeong Mun
This is added for preventing adding of new color buffers structure and back* when new platform backend is added. This refactoring separates out the common and platform specific bits. This makes odd casting in the platform_foo.c but it prevents adding of new ifdef magic. Because of color_buffers

[Mesa-dev] [PATCH v2 4/8] egl: add dri2_egl_surface_update_buffer_age() helper (v2)

2017-10-06 Thread Gwan-gyeong Mun
To share common update buffer age code. This updates old buffer's age and sets current back buffer's age to 1. In preparation to adding of new platform which uses this helper. v2: - Fixes from Eric's review: a) Split out series of refactor for helpers to a separate series. b) Add the new

[Mesa-dev] [PATCH v2 3/8] egl: add dri2_egl_surface_record_buffers_and_update_back_buffer() helper (v2)

2017-10-06 Thread Gwan-gyeong Mun
To share common record buffers and update back buffer code. This records all the buffers created by each platform's native window and update back buffer for updating buffer's age in swap_buffers. In preparation to adding of new platform which uses this helper. v2: - Remove unnedded ifdef magic

[Mesa-dev] [PATCH v2 1/8] egl: add dri2_egl_surface_free_outdated_buffers_and_update_size() helper (v2)

2017-10-06 Thread Gwan-gyeong Mun
To share common free outdated buffers and update size code. This compares width and height arguments with current egl surface dimension, if the compared surface dimension is differ, then it free local buffers and updates dimension. In preparation to adding of new platform which uses this helper.

[Mesa-dev] [PATCH v3 21/22] egl/android: apply dri2_egl_surface_get_image_front() helper

2017-10-04 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_android.c | 35 + 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index

[Mesa-dev] [PATCH v3 14/22] egl: add dri2_egl_surface_get_image_front() helper

2017-10-04 Thread Gwan-gyeong Mun
To share common get and create dri_image_front code. Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/egl_dri2.c | 36 src/egl/drivers/dri2/egl_dri2.h | 3 +++ 2 files changed, 39 insertions(+) diff --git

[Mesa-dev] [PATCH v3 11/22] egl/tizen: add EGL_NATIVE_SURFACE_TIZEN target of eglCreateImageKHR()

2017-10-04 Thread Gwan-gyeong Mun
It adds TIZEN_image_native_surface extension string to _EGLExtensions. And it adds a routine of creating an EGLImage from a tbm_surface. - section overview from https://www.khronos.org/registry/EGL/extensions/TIZEN/EGL_TIZEN_image_native_surface.txt "Tizen Buffer Manager (TBM) is a

[Mesa-dev] [PATCH v3 22/22] docs: add a high level info about Tizen / Tizen Porting Layer (TPL) for EGL / Tizen Buffer Manager (TBM) / etc

2017-10-04 Thread Gwan-gyeong Mun
It gives a quick overview and references of developing OpenGLES / EGL Driver for Tizen. Signed-off-by: Mun Gwan-gyeong --- docs/systems.html | 1 + docs/tizen.html | 245 ++ 2 files changed, 246 insertions(+) create

[Mesa-dev] [PATCH v3 20/22] egl/android: apply dri2_egl_surface_destroy_image_front() helper

2017-10-04 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_android.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index 8dda0a8734..a8e33fb3e2 100644 ---

[Mesa-dev] [PATCH v3 12/22] egl: add dri2_egl_surface_destroy_image_back() helper

2017-10-04 Thread Gwan-gyeong Mun
To share common destroy dri_image_back code. Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/egl_dri2.c | 14 ++ src/egl/drivers/dri2/egl_dri2.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c

[Mesa-dev] [PATCH v3 18/22] egl/android: apply dri2_egl_surface_update_buffer_age() helper

2017-10-04 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_android.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index d5ce48a34c..5c014268b1 100644

[Mesa-dev] [PATCH v3 15/22] egl/tizen: add support of dri_image_loader (v2)

2017-10-04 Thread Gwan-gyeong Mun
It adds support of dri_image_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android's. It adds dri_image_back/dri_image_back member variables to dri_egl_surface for a management of back/front buffers. v2: - Fixes from Emil's review:

[Mesa-dev] [PATCH v3 10/22] egl/tizen: add tizen specific implementation for EGL_WAYLAND_BUFFER_WL target of eglCreateImageKHR() (v2)

2017-10-04 Thread Gwan-gyeong Mun
In the tizen platform, a wl_buffer wraps a tbm_surface. The tbm_surface contains gem name or prime fd. For creating dri_image, we need to extract the tbm_surface from the wl_buffer and we use tpl_display_get_buffer_from_native_pixmap() api for that. v2: a) Add switch's default case to return

[Mesa-dev] [PATCH v3 19/22] egl/android: apply dri2_egl_surface_destroy_image_back() helper

2017-10-04 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_android.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index 5c014268b1..8dda0a8734 100644

[Mesa-dev] [PATCH v3 16/22] egl/android: apply dri2_egl_surface_free_outdated_buffers_and_update_size() helper

2017-10-04 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_android.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index e390365b8b..0acbb38bd8 100644 ---

[Mesa-dev] [PATCH v3 13/22] egl: add dri2_egl_surface_destroy_image_front() helper

2017-10-04 Thread Gwan-gyeong Mun
To share common destroy dri_image_front code. Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/egl_dri2.c | 14 ++ src/egl/drivers/dri2/egl_dri2.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c

[Mesa-dev] [PATCH v3 17/22] egl/android: apply dri2_egl_surface_record_buffers_and_update_back_buffer() helper

2017-10-04 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/platform_android.c | 25 ++--- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index

[Mesa-dev] [PATCH v3 09/22] egl/tizen: add tizen specific implementations for BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL (v2)

2017-10-04 Thread Gwan-gyeong Mun
Tizen platform (actually WL_TBM protocol) internally processes similiar actions such as mesa's BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL. So the platform_tizen.c needs to implemment BindWaylandDisplayWL, UnbindWaylandDisplayWL and QueryWaylandBufferWL apart from mesa's. -

[Mesa-dev] [PATCH v3 07/22] egl: add dri2_egl_surface_update_buffer_age() helper

2017-10-04 Thread Gwan-gyeong Mun
To share common update buffer age code. This updates old buffer's age and sets current back buffer's age to 1. Signed-off-by: Mun Gwan-gyeong --- src/egl/drivers/dri2/egl_dri2.c | 19 +++ src/egl/drivers/dri2/egl_dri2.h | 3 +++ 2 files changed, 22

[Mesa-dev] [PATCH v3 06/22] egl: add dri2_egl_surface_record_buffers_and_update_back_buffer() helper

2017-10-04 Thread Gwan-gyeong Mun
To share common record buffers and update back buffer code. This records all the buffers created by ANativeWindow [Android] or tpl_surface (tbm_surface_queue) [TIZEN] and update back buffer for updating buffer's age in swap_buffers. Signed-off-by: Mun Gwan-gyeong ---

[Mesa-dev] [PATCH v3 05/22] egl: add dri2_egl_surface_free_outdated_buffers_and_update_size() helper

2017-10-04 Thread Gwan-gyeong Mun
To share common free outdated buffers and update size code. This compares width and height arguments with current egl surface dimension, if the compared surface dimension is differ, then it free local buffers and updates dimension. Signed-off-by: Mun Gwan-gyeong ---

[Mesa-dev] [PATCH v3 08/22] egl/tizen: add support of dri2_loader (v2)

2017-10-04 Thread Gwan-gyeong Mun
It adds support of dri2_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android. And it implements a query buffer age extesion for tizen and turn on swap_buffers_with_damage extension. - it add color buffer related member variables to

[Mesa-dev] [PATCH v3 04/22] configure.ac: Add tizen to supported platforms (v2)

2017-10-04 Thread Gwan-gyeong Mun
It checks tpl-egl/libtbm/libtdm packages and defines HAVE_PLATFORM_TIZEN. This feature is enabled by the config option '--with-platforms=tizen' v2: Fixes from Emil's review: - Add require_libdrm to tizen platform Signed-off-by: Mun Gwan-gyeong --- configure.ac | 10

[Mesa-dev] [PATCH v3 02/22] egl/dri2: Add some member variables for tizen platform on dri2_egl_display and dri2_egl_surface

2017-10-04 Thread Gwan-gyeong Mun
It adds some member variables for tizen platform on dri2_egl_display and dri2_egl_surface. - tpl_display stores a object which encapsulates native disply (wl_display, gbm_device, tbm_bufmgr) for tizen platfom. - native_win stores native window (wl_surface, gbm_surface,

[Mesa-dev] [PATCH v3 03/22] egl/tizen: add support of the swrast related features for tizen platform (v2)

2017-10-04 Thread Gwan-gyeong Mun
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Gwan-gyeong Mun <elong...@gmail.com>

[Mesa-dev] [PATCH v3 01/22] egl: add a treatment of tizen platform on egl display (v2)

2017-10-04 Thread Gwan-gyeong Mun
It adds a _EGL_PLATFORM_TIZEN enum value to _EGLPlatformType for tizen platform. It adds a detecting routine of tizen platform to _eglNativePlatformDetectNativeDisplay() and _eglGetNativePlatform(). - As tizen platform internally distinguishes native displays of tbm, drm/gbm and wayland

[Mesa-dev] [PATCH 1/2] radv: add an assertion in radv_BeginCommandBuffer()

2017-09-26 Thread Gwan-gyeong Mun
To check a valid usage requirement. CID: 1401616 Signed-off-by: Mun Gwan-gyeong --- src/amd/vulkan/radv_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 1e0e366820..4db9d7628c 100644

[Mesa-dev] [PATCH 2/2] anv: add an assertion in genX(BeginCommandBuffer)

2017-09-26 Thread Gwan-gyeong Mun
To check a valid usage requirement. Signed-off-by: Mun Gwan-gyeong --- src/intel/vulkan/genX_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index fbc1995709..3559399019 100644 ---

[Mesa-dev] [PATCH v2 4/9] configure.ac: Add tizen to supported platforms

2017-09-17 Thread Gwan-gyeong Mun
It checks tpl-egl/libtbm/libtdm packages and defines HAVE_PLATFORM_TIZEN. This feature is enabled by the config option '--with-platforms=tizen' Signed-off-by: Mun Gwan-gyeong --- configure.ac | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[Mesa-dev] [PATCH v2 6/9] egl/tizen: add tizen specific implementations for BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL

2017-09-17 Thread Gwan-gyeong Mun
Tizen platform (actually WL_TBM protocol) internally processes similiar actions such as mesa's BindWaylandDisplayWL/UnbindWaylandDisplayWL/QueryWaylandBufferWL. So the platform_tizen.c needs to implemment BindWaylandDisplayWL, UnbindWaylandDisplayWL and QueryWaylandBufferWL apart from mesa's. -

[Mesa-dev] [PATCH v2 9/9] egl/tizen: add support of dri_image_loader

2017-09-17 Thread Gwan-gyeong Mun
It adds support of dri_image_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android's. It adds dri_image_back/dri_image_back member variables to dri_egl_surface for a management of back/front buffers. Signed-off-by: Mun Gwan-gyeong

[Mesa-dev] [PATCH v2 8/9] egl/tizen: add EGL_NATIVE_SURFACE_TIZEN target of eglCreateImageKHR()

2017-09-17 Thread Gwan-gyeong Mun
It adds TIZEN_image_native_surface extension string to _EGLExtensions. And it adds a routine of creating an EGLImage from a tbm_surface. - section overview from https://www.khronos.org/registry/EGL/extensions/TIZEN/EGL_TIZEN_image_native_surface.txt "Tizen Buffer Manager (TBM) is a

[Mesa-dev] [PATCH v2 3/9] egl/tizen: add support of the swrast related features for tizen platform

2017-09-17 Thread Gwan-gyeong Mun
OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + *Gwan-gyeong Mun <elong...@gmail.com> + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#inclu

[Mesa-dev] [PATCH v2 5/9] egl/tizen: add support of dri2_loader

2017-09-17 Thread Gwan-gyeong Mun
It adds support of dri2_loader to egl dri2 tizen backend. - referenced a basic buffer flow and management implementation from android. And it implements a query buffer age extesion for tizen and turn on swap_buffers_with_damage extension. - it add color buffer related member variables to

[Mesa-dev] [PATCH v2 7/9] egl/tizen: add tizen specific implementation for EGL_WAYLAND_BUFFER_WL target of eglCreateImageKHR()

2017-09-17 Thread Gwan-gyeong Mun
In the tizen platform, a wl_buffer wraps a tbm_surface. The tbm_surface contains gem name or prime fd. For creating dri_image, we need to extract the tbm_surface from the wl_buffer and we use tpl_display_get_buffer_from_native_pixmap() api for that. Signed-off-by: Mun Gwan-gyeong

[Mesa-dev] [PATCH v2 2/9] egl/dri2: Add some member variables for tizen platform on dri2_egl_display and dri2_egl_surface

2017-09-17 Thread Gwan-gyeong Mun
It adds some member variables for tizen platform on dri2_egl_display and dri2_egl_surface. - tpl_display stores a object which encapsulates native disply (wl_display, gbm_device, tbm_bufmgr) for tizen platfom. - native_win stores native window (wl_surface, gbm_surface,

[Mesa-dev] [PATCH v2 1/9] egl: add a treatment of tizen platform on egl display

2017-09-17 Thread Gwan-gyeong Mun
It adds a _EGL_PLATFORM_TIZEN enum value to _EGLPlatformType for tizen platform. It adds a detecting routine of tizen platform to _eglNativePlatformDetectNativeDisplay() and _eglGetNativePlatform(). - As tizen platform internally distinguishes native displays of drm/gbm and wayland

[Mesa-dev] [PATCH v2 0/9] Introduce supporting of Tizen to mesa's egl platform

2017-09-17 Thread Gwan-gyeong Mun
Hi, these commit series modified some items from previous version. 1. patches are seperated by feature implementation. 2. remove unclearly relevant pbuffer surface-creation code. 3. refactored for removing duplicated codes. 4. rebased for lastest code base. Gwan-gyeong Mun (9): egl: add

[Mesa-dev] [PATCH] gallium/docs: fix a typo

2017-08-26 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/gallium/docs/source/context.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index 7002802248..6ac45819a6 100644 ---

[Mesa-dev] [PATCH] gallium/docs: add reference links for resource_create method

2017-08-24 Thread Gwan-gyeong Mun
It adds reference links for arguments usage and bind of resource_create(). Signed-off-by: Mun Gwan-gyeong --- src/gallium/docs/source/screen.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/docs/source/screen.rst

[Mesa-dev] [PATCH] gallium/docs: fix a reference link for get_paramf

2017-08-24 Thread Gwan-gyeong Mun
Previous get_paramf links same as get_param. It changes the reference link to PIPE_CAPF_* Signed-off-by: Mun Gwan-gyeong --- src/gallium/docs/source/screen.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/docs/source/screen.rst

[Mesa-dev] [PATCH] gallium/docs: Fix an inequality sign of TGSI_SEMANTIC_SUBGROUP_LT_MASK

2017-08-23 Thread Gwan-gyeong Mun
A previous expression presents same as TGSI_SEMANTIC_SUBGROUP_GT_MASK. It fixes a direction of an inequality for TGSI_SEMANTIC_SUBGROUP_LT_MASK. before: bit index > TGSI_SEMANTIC_SUBGROUP_INVOCATION after: bit index < TGSI_SEMANTIC_SUBGROUP_INVOCATION Signed-off-by: Mun Gwan-gyeong

[Mesa-dev] [PATCH] gallium/docs: Fix the math formula of U2I64

2017-08-22 Thread Gwan-gyeong Mun
before: dst.xy = (uint64_t) src0.x dst.zw = (uint64_t) src0.y after: dst.xy = (int64_t) src0.x dst.zw = (int64_t) src0.y Signed-off-by: Mun Gwan-gyeong --- src/gallium/docs/source/tgsi.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH] gallium/docs: Add missing word "Not"

2017-08-22 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/gallium/docs/source/tgsi.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/docs/source/tgsi.rst b/src/gallium/docs/source/tgsi.rst index b148c3c939..f9b1385e55 100644 ---

[Mesa-dev] [PATCH] dri: fix typo in comment

2017-08-10 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- include/GL/internal/dri_interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 2cbd738439..b90c9b2c66 100644 ---

[Mesa-dev] [PATCH] egl: deduplicate allocations of local buffer over each platform backend (v2)

2017-08-04 Thread Gwan-gyeong Mun
platform_drm, platform_wayland and platform_android have similiar local buffer allocation routines. For deduplicating, it unifies dri2_egl_surface's local buffer allocation routines. And it polishes inconsistent indentations. Note that as dri2_wl_get_buffers_with_format() have not make a

[Mesa-dev] [PATCH] egl: deduplicate allocations of local buffer over each platform backend.

2017-08-02 Thread Gwan-gyeong Mun
platform_drm, platform_wayland and platform_android have similiar local buffer allocation routines. For deduplicating, it unifies dri2_egl_surface's local buffer allocation routines. And it polishes inconsistent indentations. Signed-off-by: Mun Gwan-gyeong ---

[Mesa-dev] [PATCH] genxml: Remove a redundant identical code for different branches

2017-07-25 Thread Gwan-gyeong Mun
Before, it generates functions like this, static inline uint32_t ATTRIBUTE_PURE RENDER_SURFACE_STATE_RedClearColor_start(const struct gen_device_info *devinfo) { switch (devinfo->gen) { case 10: return 384; case 9: return 384; case 8: return 255; case 7: if

[Mesa-dev] [PATCH] radv: Change a linking order of AMDGPU_LIBS

2017-07-24 Thread Gwan-gyeong Mun
Because of "libvulkan_common.la" directly links libdrm_amdgpu api prior to "libvulkan_radeon.la", it change a linking order of AMDGPU_LIBS from "libvulkan_radeon.la" to "libvulkan_common.la". Signed-off-by: Mun Gwan-gyeong --- src/amd/vulkan/Makefile.am | 2 +- 1 file

  1   2   >