From 75b77382b843b3ccc4d9034bbddc868bf1b3105e Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Fri, 31 Jan 2025 15:00:00 -0800 Subject: [PATCH] intel/brw: Remove offsets and total_size from VGRF allocator Information was used for vec4 backend, not used here anymore. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_ir_allocator.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/intel/compiler/brw_ir_allocator.h b/src/intel/compiler/brw_ir_allocator.h index 818642fb07e..85bd1e69bef 100644 --- a/src/intel/compiler/brw_ir_allocator.h +++ b/src/intel/compiler/brw_ir_allocator.h @@ -37,13 +37,12 @@ namespace brw { class simple_allocator { public: simple_allocator() : - sizes(NULL), offsets(NULL), count(0), total_size(0), capacity(0) + sizes(NULL), count(0), capacity(0) { } ~simple_allocator() { - free(offsets); free(sizes); } @@ -54,12 +53,9 @@ namespace brw { if (capacity <= count) { capacity = MAX2(16, capacity * 2); sizes = (unsigned *)realloc(sizes, capacity * sizeof(unsigned)); - offsets = (unsigned *)realloc(offsets, capacity * sizeof(unsigned)); } sizes[count] = size; - offsets[count] = total_size; - total_size += size; return count++; } @@ -71,18 +67,9 @@ namespace brw { */ unsigned *sizes; - /** - * Array of offsets from the start of the VGRF space in allocation - * units. - */ - unsigned *offsets; - /** Total number of VGRFs allocated. */ unsigned count; - /** Cumulative size in allocation units. */ - unsigned total_size; - private: unsigned capacity; };