Fill empty UniformBufferBindingDescriptor only required 53/318453/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 17 Jan 2025 04:40:15 +0000 (13:40 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Mon, 20 Jan 2025 07:03:13 +0000 (16:03 +0900)
commitfe28b8bc12dd95d3ce01629455e18d976084b97f
tree2a7e8ca817d8f96ba61f5831cd6ef0f2a39e7b42
parentd0145d32dd1bfe0d0517412b62ec817d92629344
Fill empty UniformBufferBindingDescriptor only required

Until now, we try to reset 64 * 32 byte whenever we bind uniform buffers.
But usually we don't fully use 64 bindings for uniforms.

And also, NULL_DESCRIPTOTR could be replaced as memset(0), what we already doing
for standalone uniform buffer bindings.

To reduce those useless std::fill_n and memset,
let we call memset for binding only if we cannot assume the data will
be comes

Change-Id: I39ce8655da2f0aae96451f5d0c5025b98b25995a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/graphics/gles-impl/gles-graphics-command-buffer.cpp