projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba6bcb3
)
turnip: Annotate vkGetImageSubresourceLayout with tu_stub
author
Chad Versace
<chadversary@chromium.org>
Wed, 16 Jan 2019 23:01:35 +0000
(15:01 -0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Mon, 11 Mar 2019 17:01:41 +0000
(10:01 -0700)
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/freedreno/vulkan/tu_image.c
patch
|
blob
|
history
diff --git
a/src/freedreno/vulkan/tu_image.c
b/src/freedreno/vulkan/tu_image.c
index af90b1ff310911e11ec29cb9d3b98b1e23afb483..0a4bb8712842c46ceaf2ca5de8ba520e07e809ff 100644
(file)
--- 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