radv/radeonsi: Don't count read-only data when reporting code size
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 29 Aug 2019 15:15:46 +0000 (17:15 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Thu, 5 Sep 2019 10:21:35 +0000 (12:21 +0200)
commit5dadbabb47c317f58a3b939d08e8e50745d92990
treecd2c4e4a9d70605a8518a8adaa1dead773a1bf86
parent5cc7cc5f171079919dbe26f8e7a4d4eb53d119bb
radv/radeonsi: Don't count read-only data when reporting code size

We usually use these counts as a simple way to figure out if a change
reduces the number of instructions or shrinks an instruction. However,
since .rodata sections aren't executed, we shouldn't be counting their
size for this analysis. Make the linker return the total executable
size, and use it to report the more useful size in both drivers.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_rtld.c
src/amd/common/ac_rtld.h
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h
src/gallium/drivers/radeonsi/si_shader.c