mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
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 <stereotype441@gmail.com>
This commit is contained in:
parent
99f14bc789
commit
3f98ba9c43
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue