Clear pipelie cache if geometry destroyed or buffer changed 57/320657/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 24 Feb 2025 13:39:07 +0000 (22:39 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 5 Mar 2025 08:58:39 +0000 (17:58 +0900)
commit071589cef6b2b9dd54b36c74c8f3258439f2daa2
treecc35cc33b30405e71a203adde4a88f5c8b6175da
parent1251a4feedbd99abb087b16fbde7f360ac42e000
Clear pipelie cache if geometry destroyed or buffer changed

We also cache pipeline cache the Render::Geometry by the raw pointer.
If someone use duplicated pointer, it might return invalid pipeline
with unmatched vertexInputState.

To avoid this issue, let we erase cache if Render::Geometry destroyed,
same as Render::Program

 - This is the commit message #2:

Reset cached pipeline if geometry buffer changed

Until now, we don't re-cache the geometry
if the vertex buffer added/removed, or data changed.

Since the vertex attribute might be changed if we try to use
same geometry, the rendering result
show some non-common results.

To fix this cache issue, let we ensure to reset the cached infomations
if the vertex buffer / indices buffer changed.

Change-Id: I0dc5b4fb6b0645d4b7763d7aa890d6ad946d54c6
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/render/common/render-manager.cpp
dali/internal/render/renderers/pipeline-cache.cpp
dali/internal/render/renderers/pipeline-cache.h
dali/internal/render/renderers/render-geometry.cpp
dali/internal/render/renderers/render-geometry.h
dali/internal/render/renderers/render-renderer.cpp
dali/internal/render/renderers/render-renderer.h