mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
i965: Switch fs_inst to the non-zeroing allocator.
All member variables of fs_inst are already being initialized from its constructor, it's not necessary to use rzalloc to allocate its memory, and doing so makes it more likely that we will start relying on the allocator to zero out all memory if the class is ever extended with new member variables. That's bad because it ties objects to some specific allocation scheme, and gives unpredictable results when an object is created with a different allocator -- Stack allocation, array allocation, or aggregation inside a different object are some of the useful possibilities that come to my mind. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
a5d843ebdf
commit
ced327ec64
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ public:
|
|||
|
||||
class fs_inst : public backend_instruction {
|
||||
public:
|
||||
DECLARE_RZALLOC_CXX_OPERATORS(fs_inst)
|
||||
DECLARE_RALLOC_CXX_OPERATORS(fs_inst)
|
||||
|
||||
void init();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue