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

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

Issue 2274663005: Add GrVkCopyPipeline to handle vulkan copies as draws (Closed) Base URL: https://skia.googlesource.com/skia.git@compatibleCopyDS
Patch Set: indent nits Created 4 years, 2 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 | « gyp/gpu.gypi ('k') | 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 { 69 bool allowInitializationErrorOnTearDown() const {
70 return fAllowInitializationErrorOnTearDown; 70 return fAllowInitializationErrorOnTearDown;
71 } 71 }
72 72
73 bool supportsCopiesAsDraws() const {
74 return fSupportsCopiesAsDraws;
75 }
76
73 /** 77 /**
74 * Returns both a supported and most prefered stencil format to use in draws . 78 * Returns both a supported and most prefered stencil format to use in draws .
75 */ 79 */
76 const StencilFormat& preferedStencilFormat() const { 80 const StencilFormat& preferedStencilFormat() const {
77 return fPreferedStencilFormat; 81 return fPreferedStencilFormat;
78 } 82 }
79 83
80 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); } 84 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); }
81 85
82 private: 86 private:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 125
122 // On Adreno vulkan, they do not respect the imageOffset parameter at least in 126 // On Adreno vulkan, they do not respect the imageOffset parameter at least in
123 // copyImageToBuffer. This flag says that we must do the copy starting from the origin always. 127 // copyImageToBuffer. This flag says that we must do the copy starting from the origin always.
124 bool fMustDoCopiesFromOrigin; 128 bool fMustDoCopiesFromOrigin;
125 129
126 // On Adreno, there is a bug where vkQueueWaitIdle will once in a while retu rn 130 // 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 131 // 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. 132 // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well.
129 bool fAllowInitializationErrorOnTearDown; 133 bool fAllowInitializationErrorOnTearDown;
130 134
135 // Check whether we support using draws for copies.
136 bool fSupportsCopiesAsDraws;
137
131 typedef GrCaps INHERITED; 138 typedef GrCaps INHERITED;
132 }; 139 };
133 140
134 #endif 141 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/gpu/vk/GrVkCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698