graphite: Add texture usage to memory dump
We added usage for buffers in the initial implementation, but forgot to
do it for textures.
Bug: chromium:330806170
Change-Id: I2bfdc39cd00e76f6f43bc51c3445da8415559bf3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/185980
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
diff --git a/src/dawn/native/Texture.cpp b/src/dawn/native/Texture.cpp
index c3ce8af..bc76c51 100644
--- a/src/dawn/native/Texture.cpp
+++ b/src/dawn/native/Texture.cpp
@@ -1205,6 +1205,8 @@
dump->AddString(name.c_str(), "label", GetLabel());
dump->AddString(name.c_str(), "dimensions", GetSizeLabel());
dump->AddString(name.c_str(), "format", absl::StrFormat("%s", GetFormat().format));
+ dump->AddString(name.c_str(), "usage", absl::StrFormat("%s", GetUsage()));
+ dump->AddString(name.c_str(), "internal_usage", absl::StrFormat("%s", GetInternalUsage()));
}
uint64_t TextureBase::ComputeEstimatedByteSize() const {