Commit 3f98ba9c authored by Eric Anholt's avatar Eric Anholt

i965: Clear brw_compile on setup.

I noticed in valgrind that p->single_program_flow was used while
uninitialized.  Everything else zeroed out brw_compile, but this is better
API.
Reviewed-by: Paul Berry's avatarPaul Berry <stereotype441@gmail.com>
parent 99f14bc7
......@@ -173,6 +173,8 @@ void brw_pop_insn_state( struct brw_compile *p )
void
brw_init_compile(struct brw_context *brw, struct brw_compile *p, void *mem_ctx)
{
memset(p, 0, sizeof(*p));
p->brw = brw;
/*
* Set the initial instruction store array size to 1024, if found that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment