We found a driver issue in the Intel Mesa driver where we used
R8G8B8A8 format to fill buffers which means it was swizzling the bytes
of the data given through the vulkan API.
This changes fills the data with different values for every byte so we
can detect such issues.
VK-GL-CTS issue: 743
Affects: dEQP-VK.api.fill_and_update_buffer*
Components: Vulkan
Change-Id: Id8ac8958b443f7384e93a8fbe11bf49202332f7c
for (deUint32 buffersAllocationNdx = 0u; buffersAllocationNdx < DE_LENGTH_OF_ARRAY(bufferAllocators); ++buffersAllocationNdx)
{
DE_ASSERT(params.dstSize <= TestParams::TEST_DATA_SIZE);
- deMemset(params.testData, 0xFFu, (size_t)params.dstSize);
+ deUint8* data = (deUint8*) params.testData;
+ for (deUint32 b = 0u; b < (params.dstSize * sizeof(params.testData[0])); b++)
+ data[b] = (deUint8) (b % 255);
params.bufferAllocator = bufferAllocators[buffersAllocationNdx];
const deUint32 testCaseGroupNdx = buffersAllocationNdx;
tcu::TestCaseGroup* currentTestsGroup = bufferViewAllocationGroupTests[testCaseGroupNdx];