mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-23 11:42:55 +00: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
@ -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…
x
Reference in New Issue
Block a user