projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
912944e
)
vk/cmd_buffer: Initialize the pipeline pointer to NULL
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 26 May 2015 00:08:11 +0000
(17:08 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 26 May 2015 00:14:49 +0000
(17:14 -0700)
If a meta operation is called before the pipeline is set, this can cause
uses of undefined values. They *should* be harmless, but we might as well
shut up valgrind on this one too.
src/vulkan/device.c
patch
|
blob
|
history
diff --git
a/src/vulkan/device.c
b/src/vulkan/device.c
index 066d63598a6301da6c07d900c516d68befb9e356..5d37ce8b3be47bad775903e58dc69bc99851dbe0 100644
(file)
--- a/
src/vulkan/device.c
+++ b/
src/vulkan/device.c
@@
-2178,6
+2178,7
@@
VkResult anv_CreateCommandBuffer(
cmd_buffer->dirty = 0;
cmd_buffer->vb_dirty = 0;
+ cmd_buffer->pipeline = NULL;
*pCmdBuffer = (VkCmdBuffer) cmd_buffer;