1
0
mirror of https://github.com/Yours3lf/rpi-vk-driver.git synced 2025-02-19 16:54:18 +01:00

fixed triangle example after CTS fixes

This commit is contained in:
Unknown 2018-12-09 18:21:23 +00:00
parent cdfbf1453a
commit 1a745d6ec8
2 changed files with 5 additions and 1 deletions

View File

@ -163,7 +163,7 @@ int vc4_bo_set_tiling(int fd, uint32_t bo, uint64_t mod)
{
assert(fd);
assert(bo);
assert(mod);
//assert(mod); //TODO mod can be linear==0
struct drm_vc4_set_tiling set_tiling = {
.handle = bo,

View File

@ -230,6 +230,10 @@ VKAPI_ATTR VkResult VKAPI_CALL vkCreateSwapchainKHR(
VkMemoryRequirements mr;
vkGetImageMemoryRequirements(device, &s->images[c], &mr);
//TODO is this the right place to do this?
s->images[c].tiling = VC4_TILING_FORMAT_T;
s->images[c].alignment = mr.alignment;
VkMemoryAllocateInfo ai;
ai.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
ai.allocationSize = mr.size;