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

Unified Diff: src/gpu/vk/GrVkUtil.cpp

Issue 2251473002: Add mssa configs for vulkan, and simple bug fix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/flags/SkCommonFlagsConfig.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkUtil.cpp
diff --git a/src/gpu/vk/GrVkUtil.cpp b/src/gpu/vk/GrVkUtil.cpp
index ffbad25fd9a29753a5b05dc7975a20a816cbc70c..e0d5daf99dc001437f993bc47414ddd92138c404 100644
--- a/src/gpu/vk/GrVkUtil.cpp
+++ b/src/gpu/vk/GrVkUtil.cpp
@@ -231,19 +231,19 @@ bool GrSampleCountToVkSampleCount(uint32_t samples, VkSampleCountFlagBits* vkSam
*vkSamples = VK_SAMPLE_COUNT_2_BIT;
return true;
case 4:
- *vkSamples = VK_SAMPLE_COUNT_2_BIT;
+ *vkSamples = VK_SAMPLE_COUNT_4_BIT;
return true;
case 8:
- *vkSamples = VK_SAMPLE_COUNT_2_BIT;
+ *vkSamples = VK_SAMPLE_COUNT_8_BIT;
return true;
case 16:
- *vkSamples = VK_SAMPLE_COUNT_2_BIT;
+ *vkSamples = VK_SAMPLE_COUNT_16_BIT;
return true;
case 32:
- *vkSamples = VK_SAMPLE_COUNT_2_BIT;
+ *vkSamples = VK_SAMPLE_COUNT_32_BIT;
return true;
case 64:
- *vkSamples = VK_SAMPLE_COUNT_2_BIT;
+ *vkSamples = VK_SAMPLE_COUNT_64_BIT;
return true;
default:
return false;
« no previous file with comments | « no previous file | tools/flags/SkCommonFlagsConfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698