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

Issue 2388993003: Fixed the crash in Vulkan Shaders in Unit Testing. (Closed)

Created:
4 years, 2 months ago by Soorya
Modified:
4 years, 2 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed the crash in Vulkan Shaders in Unit Testing. The unit testing of vulkan shader module crashed since the codeSize was passed wrongly as length/4 instead of original length in vkCreateShaderModule. As per specification, codeSize is the size, in bytes, of the code pointed to by pCode. So it cannot be less than the length returned by std::string::length(). Changed the codeSize from length/4 to length. BUG = 582558, 582564 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/58e3e35913b944b369bf1e2c1f96396515ed59ca Cr-Commit-Position: refs/heads/master@{#424387}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M gpu/vulkan/vulkan_shader_module.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (12 generated)
Soorya
Please review
4 years, 2 months ago (2016-10-05 05:33:21 UTC) #4
a.suchit2
Please give some more details about the vulkan API : As per specification " codeSize ...
4 years, 2 months ago (2016-10-06 05:37:52 UTC) #5
a.suchit2
Peer review looks good to me
4 years, 2 months ago (2016-10-06 07:10:09 UTC) #10
piman
lgtm
4 years, 2 months ago (2016-10-11 00:30:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2388993003/1
4 years, 2 months ago (2016-10-11 07:48:46 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-11 07:59:11 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-10-11 08:00:56 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/58e3e35913b944b369bf1e2c1f96396515ed59ca
Cr-Commit-Position: refs/heads/master@{#424387}

Powered by Google App Engine
This is Rietveld 408576698