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

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

Issue 2384463003: Add fence support for TransferBuffers (Closed)
Patch Set: Add test code 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 | « src/gpu/gl/GrGLTestInterface.cpp ('k') | src/gpu/vk/GrVkGpu.h » ('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 #include "GrVkCaps.h" 8 #include "GrVkCaps.h"
9 9
10 #include "GrVkUtil.h" 10 #include "GrVkUtil.h"
(...skipping 18 matching lines...) Expand all
29 fNPOTTextureTileSupport = true; // always available in Vulkan 29 fNPOTTextureTileSupport = true; // always available in Vulkan
30 fTwoSidedStencilSupport = true; // always available in Vulkan 30 fTwoSidedStencilSupport = true; // always available in Vulkan
31 fStencilWrapOpsSupport = true; // always available in Vulkan 31 fStencilWrapOpsSupport = true; // always available in Vulkan
32 fDiscardRenderTargetSupport = true; 32 fDiscardRenderTargetSupport = true;
33 fReuseScratchTextures = true; //TODO: figure this out 33 fReuseScratchTextures = true; //TODO: figure this out
34 fGpuTracingSupport = false; //TODO: figure this out 34 fGpuTracingSupport = false; //TODO: figure this out
35 fCompressedTexSubImageSupport = false; //TODO: figure this out 35 fCompressedTexSubImageSupport = false; //TODO: figure this out
36 fOversizedStencilSupport = false; //TODO: figure this out 36 fOversizedStencilSupport = false; //TODO: figure this out
37 37
38 fUseDrawInsteadOfClear = false; 38 fUseDrawInsteadOfClear = false;
39 fFenceSyncSupport = true; // always available in Vulkan
39 40
40 fMapBufferFlags = kNone_MapFlags; //TODO: figure this out 41 fMapBufferFlags = kNone_MapFlags; //TODO: figure this out
41 fBufferMapThreshold = SK_MaxS32; //TODO: figure this out 42 fBufferMapThreshold = SK_MaxS32; //TODO: figure this out
42 43
43 fMaxRenderTargetSize = 4096; // minimum required by spec 44 fMaxRenderTargetSize = 4096; // minimum required by spec
44 fMaxTextureSize = 4096; // minimum required by spec 45 fMaxTextureSize = 4096; // minimum required by spec
45 fMaxColorSampleCount = 4; // minimum required by spec 46 fMaxColorSampleCount = 4; // minimum required by spec
46 fMaxStencilSampleCount = 4; // minimum required by spec 47 fMaxStencilSampleCount = 4; // minimum required by spec
47 48
48 fShaderCaps.reset(new GrGLSLCaps(contextOptions)); 49 fShaderCaps.reset(new GrGLSLCaps(contextOptions));
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 263
263 void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface, 264 void GrVkCaps::ConfigInfo::init(const GrVkInterface* interface,
264 VkPhysicalDevice physDev, 265 VkPhysicalDevice physDev,
265 VkFormat format) { 266 VkFormat format) {
266 VkFormatProperties props; 267 VkFormatProperties props;
267 memset(&props, 0, sizeof(VkFormatProperties)); 268 memset(&props, 0, sizeof(VkFormatProperties));
268 GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &pr ops)); 269 GR_VK_CALL(interface, GetPhysicalDeviceFormatProperties(physDev, format, &pr ops));
269 InitConfigFlags(props.linearTilingFeatures, &fLinearFlags); 270 InitConfigFlags(props.linearTilingFeatures, &fLinearFlags);
270 InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags); 271 InitConfigFlags(props.optimalTilingFeatures, &fOptimalFlags);
271 } 272 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTestInterface.cpp ('k') | src/gpu/vk/GrVkGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698