Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4040>
alloc = &device->alloc;
pipeline->device = device;
+ pipeline->type = ANV_PIPELINE_GRAPHICS;
ANV_FROM_HANDLE(anv_render_pass, render_pass, pCreateInfo->renderPass);
assert(pCreateInfo->subpass < render_pass->subpass_count);
char *disasm;
};
+enum anv_pipeline_type {
+ ANV_PIPELINE_GRAPHICS,
+ ANV_PIPELINE_COMPUTE,
+};
+
struct anv_pipeline {
struct anv_device * device;
struct anv_batch batch;
void * mem_ctx;
+ enum anv_pipeline_type type;
VkPipelineCreateFlags flags;
struct anv_subpass * subpass;
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
pipeline->device = device;
+ pipeline->type = ANV_PIPELINE_COMPUTE;
pipeline->blend_state.map = NULL;