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.
This commit is contained in:
Jason Ekstrand
2015-11-13 21:49:39 -08:00
parent c1733886a6
commit 91bc4e7cec
2 changed files with 4 additions and 1 deletions

View File

@@ -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);