summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_pipeline.c
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2017-03-09 14:37:26 +0100
committerIago Toral Quiroga <[email protected]>2017-03-16 11:40:05 +0100
commitca34a3125f671a63b390e19a2c170c0380a228d7 (patch)
tree947a9d7026818167a8683246c655b2ddc4e04a0d /src/intel/vulkan/genX_pipeline.c
parent1d7468311d99c2da666fa98514592edf923dd195 (diff)
anv: improve error reporting when creating pipelines
Specifically, report 'out of memory' errors that might have happened while emitting the pipeline's batch. Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r--src/intel/vulkan/genX_pipeline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c
index 0c8d3d5a74f..70a8dee0267 100644
--- a/src/intel/vulkan/genX_pipeline.c
+++ b/src/intel/vulkan/genX_pipeline.c
@@ -1677,7 +1677,7 @@ genX(graphics_pipeline_create)(
*pPipeline = anv_pipeline_to_handle(pipeline);
- return VK_SUCCESS;
+ return pipeline->batch.status;
}
static VkResult
@@ -1716,6 +1716,7 @@ compute_pipeline_create(
pipeline->batch.next = pipeline->batch.start = pipeline->batch_data;
pipeline->batch.end = pipeline->batch.start + sizeof(pipeline->batch_data);
pipeline->batch.relocs = &pipeline->batch_relocs;
+ pipeline->batch.status = VK_SUCCESS;
/* When we free the pipeline, we detect stages based on the NULL status
* of various prog_data pointers. Make them NULL by default.
@@ -1805,7 +1806,7 @@ compute_pipeline_create(
*pPipeline = anv_pipeline_to_handle(pipeline);
- return VK_SUCCESS;
+ return pipeline->batch.status;
}
VkResult genX(CreateGraphicsPipelines)(