OSDN Git Service

Fill buffer fix
authorAlexis Hetu <sugoi@google.com>
Mon, 25 Mar 2019 14:24:23 +0000 (10:24 -0400)
committerAlexis Hétu <sugoi@google.com>
Tue, 26 Mar 2019 11:34:56 +0000 (11:34 +0000)
commitfb6639fb7a41cca88e014d83ee84390ea7ffc6d5
tree3a3c3f5beb184f650d410477ff956d5139d9a4c6
parentc0cf68ba0ed629d2956255de3165dd646304e5c3
Fill buffer fix

memset was erroneously being used to copy 4 bytes at a time,
but the integer input value in memset is used as an 8 bit value,
so the fill was failing if the 4 bytes were not identical.

Tests: dEQP-VK.api.fill_and_update_buffer.*
Tests: dEQP-VK.memory.pipeline_barrier.host_read_transfer_dst.*

Bug b/118383648

Change-Id: I29cb5915ebd3773b4afbd89850c47a042fff6952
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27872
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
src/Vulkan/VkBuffer.cpp