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

Unified Diff: gpu/vulkan/vulkan_shader_module.cc

Issue 2388993003: Fixed the crash in Vulkan Shaders in Unit Testing. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_shader_module.cc
diff --git a/gpu/vulkan/vulkan_shader_module.cc b/gpu/vulkan/vulkan_shader_module.cc
index 4b13667e9599630f9f3780bd21a5d439eee0df85..04d7da92d375660885ef7ed0438b5d767373f36c 100644
--- a/gpu/vulkan/vulkan_shader_module.cc
+++ b/gpu/vulkan/vulkan_shader_module.cc
@@ -123,7 +123,7 @@ bool VulkanShaderModule::InitializeSPIRV(ShaderType type,
shader_module_create_info.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
shader_module_create_info.pCode =
reinterpret_cast<const uint32_t*>(source.c_str());
- shader_module_create_info.codeSize = source.length() / 4;
+ shader_module_create_info.codeSize = source.length();
VkShaderModule shader_module = VK_NULL_HANDLE;
VkResult result =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698