mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 05:00:32 +01:00
anv: Add a new enum to identify the pipeline type
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4040>
This commit is contained in:
parent
d0a52432b1
commit
613c9b78e3
3 changed files with 8 additions and 0 deletions
|
|
@ -1830,6 +1830,7 @@ anv_pipeline_init(struct anv_pipeline *pipeline,
|
|||
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);
|
||||
|
|
|
|||
|
|
@ -3157,6 +3157,11 @@ struct anv_pipeline_executable {
|
|||
char *disasm;
|
||||
};
|
||||
|
||||
enum anv_pipeline_type {
|
||||
ANV_PIPELINE_GRAPHICS,
|
||||
ANV_PIPELINE_COMPUTE,
|
||||
};
|
||||
|
||||
struct anv_pipeline {
|
||||
struct anv_device * device;
|
||||
struct anv_batch batch;
|
||||
|
|
@ -3167,6 +3172,7 @@ struct anv_pipeline {
|
|||
|
||||
void * mem_ctx;
|
||||
|
||||
enum anv_pipeline_type type;
|
||||
VkPipelineCreateFlags flags;
|
||||
struct anv_subpass * subpass;
|
||||
|
||||
|
|
|
|||
|
|
@ -2231,6 +2231,7 @@ compute_pipeline_create(
|
|||
return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
pipeline->device = device;
|
||||
pipeline->type = ANV_PIPELINE_COMPUTE;
|
||||
|
||||
pipeline->blend_state.map = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue