Skip to content

Commit

Permalink
we're running out of printfs to add
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Nov 29, 2023
1 parent c0cc8bd commit bd57ecd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gallium/auxiliary/target-helpers/inline_sw_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sw_screen_create_named(struct sw_winsys *winsys, const char *driver)
if (kbase_device_fd == -1) {
printf("FD_OSMESA: Failed to open kbase device: %s", strerror(errno));
} else {
struct pipe_screen_config dummy_cfg;
struct pipe_screen_config dummy_cfg = { NULL, NULL };
screen = fd_screen_create(kbase_device_fd, &dummy_cfg, NULL);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/gallium/drivers/freedreno/freedreno_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ fd_screen_create(int fd,

printf("slab create parent\n");
slab_create_parent(&screen->transfer_pool, sizeof(struct fd_transfer), 16);

printf("DONE!\n");
return pscreen;

fail:
Expand Down
4 changes: 4 additions & 0 deletions src/util/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ slab_create_parent(struct slab_parent_pool *parent,
unsigned item_size,
unsigned num_items)
{
printf("1\n");
simple_mtx_init(&parent->mutex, mtx_plain);
printf("2\n");
parent->element_size = ALIGN_POT(sizeof(struct slab_element_header) + item_size,
sizeof(intptr_t));
printf("3\n");
parent->num_elements = num_items;
printf("4\n");
parent->item_size = item_size;
}

Expand Down

0 comments on commit bd57ecd

Please sign in to comment.