int bwidth, bheight, bdepth;
int w, h, d, i;
int g_w, g_h, g_d;
- uint32_t grid_size[3];
+ uint32_t grid_size[3] = {0};
void *local_mem = NULL;
softpipe_update_compute_samplers(softpipe);
}
machines = CALLOC(sizeof(struct tgsi_exec_machine *), num_threads_in_group);
- if (!machines)
+ if (!machines) {
+ FREE(local_mem);
return;
+ }
/* initialise machines + GRID_SIZE + THREAD_ID + BLOCK_SIZE */
for (d = 0; d < bdepth; d++) {