Adding ability to dirty the allocation and notify shaders using it.
Change-Id: Id5ac8dbba5185cb1f43bedcf4098fcef9f477c51
diff --git a/libs/rs/rsScriptC_Lib.cpp b/libs/rs/rsScriptC_Lib.cpp
index b4b32bb..41828dc 100644
--- a/libs/rs/rsScriptC_Lib.cpp
+++ b/libs/rs/rsScriptC_Lib.cpp
@@ -356,6 +356,11 @@
return (int)alloc;
}
+void SC_allocationMarkDirty(RsAllocation a)
+{
+ Allocation *alloc = static_cast<Allocation *>(a);
+ alloc->sendDirty();
+}
void SC_ForEach(RsScript vs,
RsAllocation vin,
@@ -422,6 +427,8 @@
{ "_Z13rsClearObjectP13rs_allocation", (void *)&SC_clearObject },
{ "_Z10rsIsObject13rs_allocation", (void *)&SC_isObject },
+ { "_Z21rsAllocationMarkDirty13rs_allocation", (void *)&SC_allocationMarkDirty },
+
// Debug
{ "_Z7rsDebugPKcf", (void *)&SC_debugF },