anv: set layout printer
Reviewed-by: Rohan Garg <rohan.garg@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25897>
This commit is contained in:
parent
4608de6645
commit
09a3a93372
2 changed files with 16 additions and 0 deletions
|
|
@ -786,6 +786,20 @@ void anv_DestroyDescriptorSetLayout(
|
|||
anv_descriptor_set_layout_unref(device, set_layout);
|
||||
}
|
||||
|
||||
void
|
||||
anv_descriptor_set_layout_print(const struct anv_descriptor_set_layout *layout)
|
||||
{
|
||||
fprintf(stderr, "set layout:\n");
|
||||
for (uint32_t b = 0; b < layout->binding_count; b++) {
|
||||
fprintf(stderr, " binding%03u: offset=0x%08x stride=%03u size=%03u count=%03u\n",
|
||||
b,
|
||||
layout->binding[b].descriptor_offset,
|
||||
layout->binding[b].descriptor_data_size,
|
||||
layout->binding[b].descriptor_stride,
|
||||
layout->binding[b].array_size);
|
||||
}
|
||||
}
|
||||
|
||||
#define SHA1_UPDATE_VALUE(ctx, x) _mesa_sha1_update(ctx, &(x), sizeof(x));
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -2443,6 +2443,8 @@ struct anv_descriptor_set_layout {
|
|||
void anv_descriptor_set_layout_destroy(struct anv_device *device,
|
||||
struct anv_descriptor_set_layout *layout);
|
||||
|
||||
void anv_descriptor_set_layout_print(const struct anv_descriptor_set_layout *layout);
|
||||
|
||||
static inline struct anv_descriptor_set_layout *
|
||||
anv_descriptor_set_layout_ref(struct anv_descriptor_set_layout *layout)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue