diff --git a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h index a307e7928d2..9362139a0fd 100644 --- a/src/gallium/auxiliary/target-helpers/inline_sw_helper.h +++ b/src/gallium/auxiliary/target-helpers/inline_sw_helper.h @@ -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); } } diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 829c6a2b1d0..90937fff602 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -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: diff --git a/src/util/slab.c b/src/util/slab.c index 9dee236217b..9a072ce5da4 100644 --- a/src/util/slab.c +++ b/src/util/slab.c @@ -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; }