summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2019-01-16 15:01:35 -0800
committerChia-I Wu <[email protected]>2019-03-11 10:01:41 -0700
commitaaa59ef70c100fe861c099197581a1131f2bc8a4 (patch)
treed3a1789f0dad375f4e125907130d3d4eb49b823b /src/freedreno
parentba6bcb387cc1e693d85bc11dde3913b4f9133d67 (diff)
turnip: Annotate vkGetImageSubresourceLayout with tu_stub
Reviewed-by: Chia-I Wu <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/vulkan/tu_image.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_image.c b/src/freedreno/vulkan/tu_image.c
index af90b1ff310..0a4bb871284 100644
--- a/src/freedreno/vulkan/tu_image.c
+++ b/src/freedreno/vulkan/tu_image.c
@@ -283,6 +283,12 @@ tu_GetImageSubresourceLayout(VkDevice _device,
const VkImageSubresource *pSubresource,
VkSubresourceLayout *pLayout)
{
+ tu_stub();
+
+ /* Even though this is a stub, let's avoid heisenbugs by providing
+ * deterministic behavior.
+ */
+ memset(pLayout, 0, sizeof(*pLayout));
}
VkResult