Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
break;
}
- case MESA_SHADER_COMPUTE: {
- struct gl_compute_program *cp = (struct gl_compute_program *)sh->Program;
- info->cs.local_size[0] = cp->LocalSize[0];
- info->cs.local_size[1] = cp->LocalSize[1];
- info->cs.local_size[2] = cp->LocalSize[2];
- info->cs.shared_size = cp->SharedSize;
- break;
- }
-
default:
break; /* No stage-specific info */
}
break;
}
case MESA_SHADER_COMPUTE: {
- struct gl_compute_program *dst_cp = (struct gl_compute_program *) dst;
- int i;
- for (i = 0; i < 3; i++)
- dst_cp->LocalSize[i] = src->Comp.LocalSize[i];
- dst_cp->SharedSize = src->Comp.SharedSize;
+ for (int i = 0; i < 3; i++)
+ dst->info.cs.local_size[i] = src->Comp.LocalSize[i];
+ dst->info.cs.shared_size = src->Comp.SharedSize;
break;
}
default: