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

Side by Side Diff: src/gpu/vk/GrVkCaps.h

Issue 2352083002: Workaround for Adreno INITIALIZATION_FAILED bug (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/gpu/vk/GrVkCaps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrVkCaps_DEFINED 8 #ifndef GrVkCaps_DEFINED
9 #define GrVkCaps_DEFINED 9 #define GrVkCaps_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 } 59 }
60 60
61 bool canUseGLSLForShaderModule() const { 61 bool canUseGLSLForShaderModule() const {
62 return fCanUseGLSLForShaderModule; 62 return fCanUseGLSLForShaderModule;
63 } 63 }
64 64
65 bool mustDoCopiesFromOrigin() const { 65 bool mustDoCopiesFromOrigin() const {
66 return fMustDoCopiesFromOrigin; 66 return fMustDoCopiesFromOrigin;
67 } 67 }
68 68
69 bool allowInitializationErrorOnTearDown() const {
70 return fAllowInitializationErrorOnTearDown;
71 }
72
69 /** 73 /**
70 * Returns both a supported and most prefered stencil format to use in draws . 74 * Returns both a supported and most prefered stencil format to use in draws .
71 */ 75 */
72 const StencilFormat& preferedStencilFormat() const { 76 const StencilFormat& preferedStencilFormat() const {
73 return fPreferedStencilFormat; 77 return fPreferedStencilFormat;
74 } 78 }
75 79
76 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); } 80 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); }
77 81
78 private: 82 private:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 116
113 StencilFormat fPreferedStencilFormat; 117 StencilFormat fPreferedStencilFormat;
114 118
115 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule 119 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule
116 bool fCanUseGLSLForShaderModule; 120 bool fCanUseGLSLForShaderModule;
117 121
118 // On Adreno vulkan, they do not respect the imageOffset parameter at least in 122 // On Adreno vulkan, they do not respect the imageOffset parameter at least in
119 // copyImageToBuffer. This flag says that we must do the copy starting from the origin always. 123 // copyImageToBuffer. This flag says that we must do the copy starting from the origin always.
120 bool fMustDoCopiesFromOrigin; 124 bool fMustDoCopiesFromOrigin;
121 125
126 // On Adreno, there is a bug where vkQueueWaitIdle will once in a while retu rn
127 // VK_ERROR_INITIALIZATION_FAILED instead of the required VK_SUCCESS or VK_D EVICE_LOST. This
128 // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well.
129 bool fAllowInitializationErrorOnTearDown;
130
122 typedef GrCaps INHERITED; 131 typedef GrCaps INHERITED;
123 }; 132 };
124 133
125 #endif 134 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/vk/GrVkCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698