diff options
author | Xuelian Bai <xuelian.bai@samsung.com> | 2019-05-29 00:01:10 +0800 |
---|---|---|
committer | Xuelian Bai <xuelian.bai@samsung.com> | 2024-01-18 09:29:10 +0800 |
commit | fccace389a6faa9bd94ed270d6c0ceec3ec528b2 (patch) | |
tree | c2a38b39fb12c70d539896d786f3a3ffb0a75597 /include | |
parent | ae6e7a9c92348647e3294c7f8f3ae4908b0c88e9 (diff) | |
download | mesa-fccace389a6faa9bd94ed270d6c0ceec3ec528b2.tar.gz mesa-fccace389a6faa9bd94ed270d6c0ceec3ec528b2.tar.bz2 mesa-fccace389a6faa9bd94ed270d6c0ceec3ec528b2.zip |
Fix resize issue
Handle 1x1 issue for driimage
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.
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.
Merged Commit:
commit 2dc471b0e167693b81c24c9a3f89b985cb98249f
Author: Zhaowei Yuan <zhaowei.yuan@samsung.com>
- Check if stdraw is NULL before access
Variable "stdraw" could be NULL in some case, check it before access.
commit cc2dc99365906ea52b645be3bb10f50708d67e84
Author: Xuelian Bai <xuelian.bai@samsung.com>
- Fix 1x1 issue of task-mgr
Makecurrent is called just before resize callback is called, so we
have to check if size is changed when drawcall.
commit 670d77331c986a92bcf2459567ccd6dfc181bc66
Author: Xuelian Bai <xuelian.bai@samsung.com>
- Fix resize issue
Change-Id: Ieaebe72661a081d496ab6214c1c1526f7d16f19b
Signed-Off-by: Xuelian Bai <xuelian.bai@samsung.com>
- Handle 1x1 issue for driimage
Change-Id: Id5a463a8db290ca5b80c130ebcdcb13c7786d70c
Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/internal/dri_interface.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index ad3ce1cfed4..b6342914212 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -42,7 +42,7 @@ #include <stdbool.h> #include <stdint.h> - +#include <stdbool.h> /** * \name DRI interface structures * @@ -1099,6 +1099,9 @@ struct __DRIdri2LoaderExtensionRec { * \since 5 */ void (*destroyLoaderImageState)(void *loaderPrivate); +#ifdef HAVE_TIZEN_PLATFORM + bool (*validate)(__DRIdrawable *driDrawable, void *loaderPrivate); +#endif }; /** @@ -2073,6 +2076,10 @@ struct __DRIimageLoaderExtensionRec { * \since 4 */ void (*destroyLoaderImageState)(void *loaderPrivate); +#ifdef HAVE_TIZEN_PLATFORM + bool (*validate)(__DRIdrawable *driDrawable, void *loaderPrivate); +#endif + }; /** |