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

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

Issue 2373503004: Revert of Add command buffer submits before copy calls in vulkan. (Closed)
Patch Set: 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 | « 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 */ 79 */
80 const StencilFormat& preferedStencilFormat() const { 80 const StencilFormat& preferedStencilFormat() const {
81 return fPreferedStencilFormat; 81 return fPreferedStencilFormat;
82 } 82 }
83 83
84 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); } 84 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderC aps.get()); }
85 85
86 private: 86 private:
87 enum VkVendor { 87 enum VkVendor {
88 kQualcomm_VkVendor = 20803, 88 kQualcomm_VkVendor = 20803,
89 kNvidia_VkVendor = 4318,
90 }; 89 };
91 90
92 void init(const GrContextOptions& contextOptions, const GrVkInterface* vkInt erface, 91 void init(const GrContextOptions& contextOptions, const GrVkInterface* vkInt erface,
93 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extension Flags); 92 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extension Flags);
94 void initGrCaps(const VkPhysicalDeviceProperties&, 93 void initGrCaps(const VkPhysicalDeviceProperties&,
95 const VkPhysicalDeviceMemoryProperties&, 94 const VkPhysicalDeviceMemoryProperties&,
96 uint32_t featureFlags); 95 uint32_t featureFlags);
97 void initGLSLCaps(const VkPhysicalDeviceProperties&, uint32_t featureFlags); 96 void initGLSLCaps(const VkPhysicalDeviceProperties&, uint32_t featureFlags);
98 void initSampleCount(const VkPhysicalDeviceProperties& properties); 97 void initSampleCount(const VkPhysicalDeviceProperties& properties);
99 98
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well. 132 // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well.
134 bool fAllowInitializationErrorOnTearDown; 133 bool fAllowInitializationErrorOnTearDown;
135 134
136 // Check whether we support using draws for copies. 135 // Check whether we support using draws for copies.
137 bool fSupportsCopiesAsDraws; 136 bool fSupportsCopiesAsDraws;
138 137
139 typedef GrCaps INHERITED; 138 typedef GrCaps INHERITED;
140 }; 139 };
141 140
142 #endif 141 #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