Cleanup: Remove data duplication from SMAA lookup tables

These 2 large tables, `areaTexBytes` and `searchTexBytes`, contributed
~176kb worth of duplicate data into the `blender` executable due to the
header being used in multiple places. We were lucky that only 2
translation units had included this header so only 1 duplicate copy of
each was wasted.

Define the tables as `extern` to address this.

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D12723
This commit is contained in:
Jesse Yurkovich
2021-10-13 16:12:53 +02:00
committed by Clément Foucault
parent 6c11b320c4
commit 92b7bf4856
4 changed files with 15072 additions and 15035 deletions

View File

@@ -108,6 +108,7 @@ set(SRC
intern/draw_select_buffer.c
intern/draw_texture_pool.cc
intern/draw_shader.c
intern/smaa_textures.c
intern/draw_view.c
engines/basic/basic_engine.c
engines/image/image_engine.c

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff