#ifdef PIPE_OS_UNIX
unsigned signo = debug_get_num_option("GALLIUM_HUD_TOGGLE_SIGNAL", 0);
static boolean sig_handled = FALSE;
- struct sigaction action = {};
+ struct sigaction action = {{0}};
#endif
huds_visible = debug_get_bool_option("GALLIUM_HUD_VISIBLE", TRUE);
renderonly_scanout_destroy(struct renderonly_scanout *scanout,
struct renderonly *ro)
{
- struct drm_mode_destroy_dumb destroy_dumb = { };
+ struct drm_mode_destroy_dumb destroy_dumb = {0};
if (ro->kms_fd != -1) {
destroy_dumb.handle = scanout->handle;
.height = rsc->height0,
.bpp = util_format_get_blocksizebits(rsc->format),
};
- struct drm_mode_destroy_dumb destroy_dumb = { };
+ struct drm_mode_destroy_dumb destroy_dumb = {0};
scanout = CALLOC_STRUCT(renderonly_scanout);
if (!scanout)
}
viewport.scale[2] = 1;
- struct pipe_constant_buffer cb = {};
+ struct pipe_constant_buffer cb = {0};
float *ptr = NULL;
u_upload_alloc(filter->pipe->const_uploader, 0, 2 * sizeof(float), 256,
struct pipe_context *ctx = c->pipe;
/* Bind the image */
- struct pipe_image_view image = {};
+ struct pipe_image_view image = {0};
image.resource = c->fb_state.cbufs[0]->texture;
image.shader_access = image.access = PIPE_IMAGE_ACCESS_READ_WRITE;
image.format = c->fb_state.cbufs[0]->texture->format;
ctx->bind_compute_state(ctx, cs);
/* Dispatch compute */
- struct pipe_grid_info info = {};
+ struct pipe_grid_info info = {0};
info.block[0] = 8;
info.block[1] = 8;
info.block[2] = 1;
return NULL;
}
- struct pipe_compute_state state = {};
+ struct pipe_compute_state state = {0};
state.ir_type = PIPE_SHADER_IR_TGSI;
state.prog = tokens;
vl_video_buffer_create_as_resource(struct pipe_context *pipe,
const struct pipe_video_buffer *tmpl)
{
- struct pipe_resource templ, *resources[VL_NUM_COMPONENTS] = {};
+ struct pipe_resource templ, *resources[VL_NUM_COMPONENTS] = {0};
unsigned array_size = tmpl->interlaced ? 2 : 1;
memset(&templ, 0, sizeof(templ));