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

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

Issue 1739063002: Fix oval rendering in vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@uboFormat
Patch Set: Created 4 years, 10 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/GrSWMaskHelper.cpp ('k') | no next file » | 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // fConfigOutputSwizzle will default to RGBA so we only need to set it for a lpha only config. 113 // fConfigOutputSwizzle will default to RGBA so we only need to set it for a lpha only config.
114 for (int i = 0; i < kGrPixelConfigCnt; ++i) { 114 for (int i = 0; i < kGrPixelConfigCnt; ++i) {
115 GrPixelConfig config = static_cast<GrPixelConfig>(i); 115 GrPixelConfig config = static_cast<GrPixelConfig>(i);
116 if (GrPixelConfigIsAlphaOnly(config)) { 116 if (GrPixelConfigIsAlphaOnly(config)) {
117 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR(); 117 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR();
118 glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA(); 118 glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA();
119 } else { 119 } else {
120 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA(); 120 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA();
121 } 121 }
122 } 122 }
123
124 glslCaps->fShaderDerivativeSupport = true;
egdaniel 2016/02/25 21:07:23 This should always be supported and I don't think
123 } 125 }
124 126
125 static void format_supported_for_feature(const GrVkInterface* interface, 127 static void format_supported_for_feature(const GrVkInterface* interface,
126 VkPhysicalDevice physDev, 128 VkPhysicalDevice physDev,
127 VkFormat format, 129 VkFormat format,
128 VkFormatFeatureFlagBits featureBit, 130 VkFormatFeatureFlagBits featureBit,
129 bool* linearSupport, 131 bool* linearSupport,
130 bool* optimalSupport) { 132 bool* optimalSupport) {
131 VkFormatProperties props; 133 VkFormatProperties props;
132 memset(&props, 0, sizeof(VkFormatProperties)); 134 memset(&props, 0, sizeof(VkFormatProperties));
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 // internal Format stencil bits total bits packed? 237 // internal Format stencil bits total bits packed?
236 gS8 = { VK_FORMAT_S8_UINT, 8, 8, false }, 238 gS8 = { VK_FORMAT_S8_UINT, 8, 8, false },
237 gD24S8 = { VK_FORMAT_D24_UNORM_S8_UINT, 8, 32, true }; 239 gD24S8 = { VK_FORMAT_D24_UNORM_S8_UINT, 8, 32, true };
238 240
239 // I'm simply assuming that these two will be supported since they are used in example code. 241 // I'm simply assuming that these two will be supported since they are used in example code.
240 // TODO: Actaully figure this out 242 // TODO: Actaully figure this out
241 SET_CONFIG_CAN_STENCIL(gS8); 243 SET_CONFIG_CAN_STENCIL(gS8);
242 SET_CONFIG_CAN_STENCIL(gD24S8); 244 SET_CONFIG_CAN_STENCIL(gD24S8);
243 } 245 }
244 246
OLDNEW
« no previous file with comments | « src/gpu/GrSWMaskHelper.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698