Pipe: per-program global-constants key and frontend-written spans replace the client shadow diff.

This commit is contained in:
2026-10-09 18:26:43 -04:00
parent e9201891f5
commit e70925d35b
6 changed files with 205 additions and 43 deletions
@@ -1572,7 +1572,8 @@ namespace MobileGL::MG_Impl::GLImpl {
// version.
if (std::memcmp(pUBO + offset + byteOffsetInsideUniform, value, writeSize) == 0) return;
Memcpy(pUBO + offset + byteOffsetInsideUniform, value, writeSize);
programObject.MarkUBOContentDirty();
programObject.MarkUBOContentDirtyRange(static_cast<Uint>(offset + byteOffsetInsideUniform),
static_cast<Uint>(writeSize));
} else {
const auto& ttype = programObject.GetUniformTypeFacts(location);
if (!ttype.isTexture && !ttype.isImage) return;