Fix resize issue
authorXuelian Bai <xuelian.bai@samsung.com>
Tue, 28 May 2019 16:01:10 +0000 (00:01 +0800)
committerXuelian Bai <xuelian.bai@samsung.com>
Tue, 21 Feb 2023 06:32:46 +0000 (14:32 +0800)
commitf3a568bb8e55bc6bd2582f777206b0be434dd7c9
treebc5181e4b285e19250079344736d898fef1501ef
parent286f92fdae3ab1e8fa780f0ce8cdab3c74ea39b1
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>
include/GL/internal/dri_interface.h
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_tizen.c
src/gallium/frontends/dri/dri2.c
src/gallium/frontends/dri/dri_drawable.c
src/gallium/frontends/dri/dri_drawable.h
src/gallium/include/frontend/api.h
src/mesa/state_tracker/st_atom.c
src/mesa/state_tracker/st_manager.c [changed mode: 0644->0755]
src/mesa/state_tracker/st_manager.h