radeonsi: Properly initialize si_shader_ctx.radeon_bld
authorTom Stellard <thomas.stellard@amd.com>
Thu, 2 Aug 2012 17:21:30 +0000 (13:21 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 2 Aug 2012 17:21:30 +0000 (13:21 -0400)
src/gallium/drivers/radeonsi/radeonsi_shader.c

index e3069df48306e9206b02298f09b7c850da7e6d95..5313e5e6532af0974cdc278fb8f34fb722fe1f4b 100644 (file)
@@ -600,6 +600,7 @@ int si_pipe_shader_create(
 
        dump = debug_get_bool_option("RADEON_DUMP_SHADERS", FALSE);
 
+       memset(&si_shader_ctx.radeon_bld, 0, sizeof(si_shader_ctx.radeon_bld));
        radeon_llvm_context_init(&si_shader_ctx.radeon_bld);
        bld_base = &si_shader_ctx.radeon_bld.soa.bld_base;