radv: split radv_pipeline into radv_{graphics,compute,library}pipeline
Instead of using a union in radv_pipeline, this introduces new structures for graphics, compute and library pipelines which inherit from radv_pipeline. This will ease graphics pipeline libary implem. There is still no radv_raytracing_pipeline because RADV actually uses a compute pipeline for everything but it could be introduced later when necessary. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16603>
This commit is contained in:

committed by
Marge Bot

parent
fc3717df0c
commit
23be0aad9c
@@ -462,9 +462,9 @@ radv_dump_shaders(struct radv_pipeline *pipeline, VkShaderStageFlagBits active_s
|
||||
}
|
||||
|
||||
static void
|
||||
radv_dump_vertex_descriptors(struct radv_pipeline *pipeline, FILE *f)
|
||||
radv_dump_vertex_descriptors(struct radv_graphics_pipeline *pipeline, FILE *f)
|
||||
{
|
||||
void *ptr = (uint64_t *)pipeline->device->trace_id_ptr;
|
||||
void *ptr = (uint64_t *)pipeline->base.device->trace_id_ptr;
|
||||
uint32_t count = util_bitcount(pipeline->vb_desc_usage_mask);
|
||||
uint32_t *vb_ptr = &((uint32_t *)ptr)[3];
|
||||
|
||||
@@ -526,11 +526,13 @@ radv_dump_queue_state(struct radv_queue *queue, const char *dump_dir, FILE *f)
|
||||
|
||||
pipeline = radv_get_saved_pipeline(queue->device, ring);
|
||||
if (pipeline) {
|
||||
struct radv_graphics_pipeline *graphics_pipeline = radv_pipeline_to_graphics(pipeline);
|
||||
|
||||
radv_dump_vs_prolog(pipeline, f);
|
||||
radv_dump_shaders(pipeline, pipeline->active_stages, dump_dir, f);
|
||||
if (!(queue->device->instance->debug_flags & RADV_DEBUG_NO_UMR))
|
||||
radv_dump_annotated_shaders(pipeline, pipeline->active_stages, f);
|
||||
radv_dump_vertex_descriptors(pipeline, f);
|
||||
radv_dump_vertex_descriptors(graphics_pipeline, f);
|
||||
radv_dump_descriptors(queue->device, f);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user