summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonbum Ko <joonbum.ko@samsung.com>2024-08-20 15:04:51 +0900
committerJoonbum Ko <joonbum.ko@samsung.com>2024-08-20 15:13:29 +0900
commit87f49d7973ed40922d545f88f01a2c5db551ee72 (patch)
tree083ec1d1915be39c788240a60c2eba90a7b7ed59
parent79848e83c72ce41314dde0fd4973f80180e9c6a3 (diff)
downloadmesa-87f49d7973ed40922d545f88f01a2c5db551ee72.tar.gz
mesa-87f49d7973ed40922d545f88f01a2c5db551ee72.tar.bz2
mesa-87f49d7973ed40922d545f88f01a2c5db551ee72.zip
fix 1x1 resize issue
- The code structure related to st_atom has changed, causing a problem with the 1x1 resize again. - Even in situations where windows were resized after eglMakeCurrent, it was modified to obtain the resized buffer from prepare_draw. Change-Id: I6b84bae935679b1eabbeeb5b0affaed78eb3aee9 Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
-rw-r--r--src/mesa/state_tracker/st_atom_framebuffer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c
index 72e5b66e4b4..5c2f2aabca2 100644
--- a/src/mesa/state_tracker/st_atom_framebuffer.c
+++ b/src/mesa/state_tracker/st_atom_framebuffer.c
@@ -118,7 +118,10 @@ st_update_framebuffer_state( struct st_context *st )
/* Window framebuffer changes are received here. */
#ifdef HAVE_TIZEN_PLATFORM
- st_manager_validate_framebuffers(st, true);
+ bool valid = true;
+ if (fb->drawable->validate_drawable)
+ valid = fb->drawable->validate_drawable(fb->drawable);
+ st_manager_validate_framebuffers(st, valid);
#else
st_manager_validate_framebuffers(st);
#endif