diff options
author | Jason Ekstrand <[email protected]> | 2015-11-13 21:49:39 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-13 21:49:41 -0800 |
commit | 91bc4e7cec4098000f3d9a265e7db7907a686e5a (patch) | |
tree | a93f3d536c30244671073a2ccb7da9968cc67873 /src/vulkan/gen8_pipeline.c | |
parent | c1733886a6ba28d781da14fa2c6bc4ddf5ef675d (diff) |
anv/pipeline: Don't free blend states that don't exist
Compute pipelines don't need a blend state so we shouldn't be
unconditionally freeing it.
Diffstat (limited to 'src/vulkan/gen8_pipeline.c')
-rw-r--r-- | src/vulkan/gen8_pipeline.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/gen8_pipeline.c b/src/vulkan/gen8_pipeline.c index a51cf4924ae..e98045248a4 100644 --- a/src/vulkan/gen8_pipeline.c +++ b/src/vulkan/gen8_pipeline.c @@ -598,6 +598,8 @@ VkResult gen8_compute_pipeline_create( pipeline->device = device; pipeline->layout = anv_pipeline_layout_from_handle(pCreateInfo->layout); + pipeline->blend_state.map = NULL; + result = anv_reloc_list_init(&pipeline->batch_relocs, device); if (result != VK_SUCCESS) { anv_device_free(device, pipeline); |