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:
parent
cdfbf1453a
commit
1a745d6ec8
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user