aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2024-02-26 16:31:58 -0700
committerAngle LUCI CQ <angle-scoped@luci-project-accounts.iam.gserviceaccount.com>2024-02-27 20:47:08 +0000
commit6f2daf05886c7c24e7ad423cd5e9f31e958695f8 (patch)
tree6d49060ca03f45a6c86a30d1b9e5869128a6a78b
parent2fb425d2847f974332d01e53216c4d1164c1a17d (diff)
downloadangle-6f2daf05886c7c24e7ad423cd5e9f31e958695f8.tar.gz
Context: Limit max vtx uniform vectors to 256 during capture
To ensure compatibility with Pixel 4/5, GL_MAX_VECTOR_UNIFORM_VECTORS should be set to 256 during capture. Bug: b/326199738 Change-Id: Ic7228322b4ed19949a9669cf0719fffa1a86f577 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5329326 Reviewed-by: Cody Northrop <cnorthrop@google.com> Commit-Queue: Mark Łobodziński <mark@lunarg.com>
-rw-r--r--src/libANGLE/Context.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libANGLE/Context.cpp b/src/libANGLE/Context.cpp
index 5dd9065894..63318223eb 100644
--- a/src/libANGLE/Context.cpp
+++ b/src/libANGLE/Context.cpp
@@ -4246,6 +4246,11 @@ void Context::initCaps()
INFO() << "Limiting GL_MAX_SAMPLES to " << maxSamples;
ANGLE_LIMIT_CAP(caps->maxSamples, maxSamples);
+ // Pixel 4/5 only supports GL_MAX_VERTEX_UNIFORM_VECTORS of 256
+ constexpr GLint maxVertexUniformVectors = 256;
+ INFO() << "Limiting GL_MAX_VERTEX_UNIFORM_VECTORS to " << maxVertexUniformVectors;
+ ANGLE_LIMIT_CAP(caps->maxVertexUniformVectors, maxVertexUniformVectors);
+
// Test if we require shadow memory for coherent buffer tracking
getShareGroup()->getFrameCaptureShared()->determineMemoryProtectionSupport(this);
}