i965, mesa: Use the new DECLARE_R[Z]ALLOC_CXX_OPERATORS macros.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 Sep 2013 21:11:32 +0000 (14:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 21 Sep 2013 16:17:21 +0000 (09:17 -0700)
commit4f1ebb8ddd0294698601a8c4fc38f1e39bfd51f6
treede988eab944ebac1525f233ff33814d9f6e9fbda
parent81a3759bb51a1a12ba1c6c6ad586c5ff5f31c411
i965, mesa: Use the new DECLARE_R[Z]ALLOC_CXX_OPERATORS macros.

These classes declared a placement new operator, but didn't declare a
delete operator.  Switching to the macro gives them a delete operator,
which probably is a good idea anyway.

This also eliminates a lot of boilerplate.

v2: Properly use RZALLOC in Mesa IR/TGSI translators.  Caught by Eric
    and Chad.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_cfg.h
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_live_variables.h
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_live_variables.h
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp