diff options
author | Marek Olšák <[email protected]> | 2018-02-03 16:10:25 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-02-26 12:01:00 +0100 |
commit | 8d6e6b1d7c9ad73f6d829c6c40ce20a499e334fc (patch) | |
tree | b1eecd961248784e977aad2f02e4f148baa61942 /src/gallium/drivers/radeonsi/si_debug.c | |
parent | 61d6ff3ba3c0a21239641f4d5fe8d4fa9c864325 (diff) |
radeonsi: don't use struct si_descriptors for vertex buffer descriptors
VBO descriptor code will change a lot one day.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_debug.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_debug.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_debug.c b/src/gallium/drivers/radeonsi/si_debug.c index 385ce3906db..1f25f4ebbeb 100644 --- a/src/gallium/drivers/radeonsi/si_debug.c +++ b/src/gallium/drivers/radeonsi/si_debug.c @@ -740,10 +740,20 @@ static void si_dump_descriptors(struct si_context *sctx, enabled_images = sctx->images[processor].enabled_mask; } - if (processor == PIPE_SHADER_VERTEX) { + if (processor == PIPE_SHADER_VERTEX && + sctx->vb_descriptors_buffer && + sctx->vb_descriptors_gpu_list && + sctx->vertex_elements) { assert(info); /* only CS may not have an info struct */ + struct si_descriptors desc = {}; - si_dump_descriptor_list(sctx->screen, &sctx->vertex_buffers, name, + desc.buffer = sctx->vb_descriptors_buffer; + desc.list = sctx->vb_descriptors_gpu_list; + desc.gpu_list = sctx->vb_descriptors_gpu_list; + desc.element_dw_size = 4; + desc.num_active_slots = sctx->vertex_elements->desc_list_byte_size / 16; + + si_dump_descriptor_list(sctx->screen, &desc, name, " - Vertex buffer", 4, info->num_inputs, si_identity, log); } |