Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: gpu/command_buffer/service/program_manager.h

Issue 153173002: Add a gpu driver bug workaround to count in all varyings in packing check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/program_manager.h
diff --git a/gpu/command_buffer/service/program_manager.h b/gpu/command_buffer/service/program_manager.h
index 0da039dc121ec2051a55d98f5933d2edd2f6b984..17995d3af4f28491f0e0e2c57837290b27ed6f7a 100644
--- a/gpu/command_buffer/service/program_manager.h
+++ b/gpu/command_buffer/service/program_manager.h
@@ -34,6 +34,11 @@ class GPU_EXPORT Program : public base::RefCounted<Program> {
public:
static const int kMaxAttachedShaders = 2;
+ enum VaryingsPackingOption {
+ kCountOnlyStaticallyUsed,
+ kCountAll
+ };
+
struct UniformInfo {
UniformInfo();
UniformInfo(
@@ -201,7 +206,7 @@ class GPU_EXPORT Program : public base::RefCounted<Program> {
// Return false if varyings can't be packed into the max available
// varying registers.
- bool CheckVaryingsPacking() const;
+ bool CheckVaryingsPacking(VaryingsPackingOption option) const;
// Visible for testing
const LocationMap& bind_attrib_location_map() const {
@@ -404,8 +409,6 @@ class GPU_EXPORT ProgramManager {
bool have_context_;
- bool disable_workarounds_;
-
// Used to clear uniforms.
std::vector<uint8> zero_;
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_manager.cc » ('j') | gpu/command_buffer/service/program_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698