mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
ir_to_mesa: Set up our instruction nodes with zeroed data.
cond_update wasn't being set by emit_op3, leading to valgrind complaints, and failures in several piglit tests when built with clang.
This commit is contained in:
parent
1eea96326f
commit
7406898441
1 changed files with 12 additions and 0 deletions
|
|
@ -105,6 +105,18 @@ extern ir_to_mesa_src_reg ir_to_mesa_undef;
|
|||
|
||||
class ir_to_mesa_instruction : public exec_node {
|
||||
public:
|
||||
/* Callers of this talloc-based new need not call delete. It's
|
||||
* easier to just talloc_free 'ctx' (or any of its ancestors). */
|
||||
static void* operator new(size_t size, void *ctx)
|
||||
{
|
||||
void *node;
|
||||
|
||||
node = talloc_zero_size(ctx, size);
|
||||
assert(node != NULL);
|
||||
|
||||
return node;
|
||||
}
|
||||
|
||||
enum prog_opcode op;
|
||||
ir_to_mesa_dst_reg dst_reg;
|
||||
ir_to_mesa_src_reg src_reg[3];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue