All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ti-sgx-ddk-um: fix a bug at the drmModeAddFB() call at null_drm_ws.c
@ 2016-12-06 20:10 Eric Ruei
  2016-12-07  0:43 ` Denys Dmytriyenko
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Ruei @ 2016-12-06 20:10 UTC (permalink / raw)
  To: meta-ti

Both parameter depth and bpp are set to uiPixelWidthInBits at the current
implementation, however, the depth may not be the same as bpp for certain
pixel format such as XRGB8888. This bug was exposed by the recent DRM
driver change introducing strict error checking. To fix this problem, add utility
function uiPixelDepthInBits to derive and use depth based on the pixel format.


Signed-off-by: Eric Ruei <e-ruei1@ti.com>
---
 recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
index 15c9232..77fc198 100644
--- a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
+++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
@@ -8,7 +8,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 BRANCH = "ti-img-sgx/${PV}"
 
 SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
-SRCREV = "fccafce7d0a023e36c064ccbaa7d33e89252ea00"
+SRCREV = "3c0537748dd283b2de9c5369570aa2aade5a9979"
 
 # There's only hardfp version available
 python __anonymous() {
@@ -31,7 +31,7 @@ INITSCRIPT_PARAMS = "defaults 8"
 
 inherit update-rc.d
 
-PR = "r16"
+PR = "r17"
 PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux"
 
 DEPENDS += "libdrm udev libgbm wayland libffi"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ti-sgx-ddk-um: fix a bug at the drmModeAddFB() call at null_drm_ws.c
  2016-12-06 20:10 [PATCH] ti-sgx-ddk-um: fix a bug at the drmModeAddFB() call at null_drm_ws.c Eric Ruei
@ 2016-12-07  0:43 ` Denys Dmytriyenko
  0 siblings, 0 replies; 2+ messages in thread
From: Denys Dmytriyenko @ 2016-12-07  0:43 UTC (permalink / raw)
  To: Eric Ruei; +Cc: meta-ti

Does not apply, please rebase.

On Tue, Dec 06, 2016 at 03:10:50PM -0500, Eric Ruei wrote:
> Both parameter depth and bpp are set to uiPixelWidthInBits at the current
> implementation, however, the depth may not be the same as bpp for certain
> pixel format such as XRGB8888. This bug was exposed by the recent DRM
> driver change introducing strict error checking. To fix this problem, add utility
> function uiPixelDepthInBits to derive and use depth based on the pixel format.
> 
> 
> Signed-off-by: Eric Ruei <e-ruei1@ti.com>
> ---
>  recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
> index 15c9232..77fc198 100644
> --- a/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
> +++ b/recipes-graphics/libgles/ti-sgx-ddk-um_1.14.3699939.bb
> @@ -8,7 +8,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
>  BRANCH = "ti-img-sgx/${PV}"
>  
>  SRC_URI = "git://git.ti.com/graphics/omap5-sgx-ddk-um-linux.git;protocol=git;branch=${BRANCH}"
> -SRCREV = "fccafce7d0a023e36c064ccbaa7d33e89252ea00"
> +SRCREV = "3c0537748dd283b2de9c5369570aa2aade5a9979"
>  
>  # There's only hardfp version available
>  python __anonymous() {
> @@ -31,7 +31,7 @@ INITSCRIPT_PARAMS = "defaults 8"
>  
>  inherit update-rc.d
>  
> -PR = "r16"
> +PR = "r17"
>  PROVIDES += "virtual/egl virtual/libgles1 virtual/libgles2 omap5-sgx-ddk-um-linux"
>  
>  DEPENDS += "libdrm udev libgbm wayland libffi"
> -- 
> 1.9.1
> 
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-12-07  0:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 20:10 [PATCH] ti-sgx-ddk-um: fix a bug at the drmModeAddFB() call at null_drm_ws.c Eric Ruei
2016-12-07  0:43 ` Denys Dmytriyenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.