mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-18 07:18:06 +02:00
In turnip we were using this a lot with the dynamic state enum, and we're running out of space there because we're needing to add more and more dynamic states that don't correspond to draw states. Make it 64-bit-safe so we don't need to rewrite everything in turnip. In the case where the thing being operated on is 32-bit the compiler can usually optimize it away, as can be seen with the release build size before and after: before: text data bss dec hex filename 5404913 293592 22744 5721249 574ca1 /home/cwabbott/build/mesa-release/lib64/libvulkan_freedreno.so text data bss dec hex filename 13981320 498550 205000 14684870 e012c6 /home/cwabbott/build/mesa-release/lib64/dri/msm_dri.so after: text data bss dec hex filename 5404969 293592 22744 5721305 574cd9 /home/cwabbott/build/mesa-release/lib64/libvulkan_freedreno.so text data bss dec hex filename 13981320 498550 205000 14684870 e012c6 /home/cwabbott/build/mesa-release/lib64/dri/msm_dri.so In the end the only changes is an additional ~50 bytes of text in turnip. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18912> |
||
|---|---|---|
| .. | ||
| disasm.h | ||
| freedreno_common.h | ||
| freedreno_dev_info.c | ||
| freedreno_dev_info.h | ||
| freedreno_devices.py | ||
| freedreno_guardband.h | ||
| freedreno_pm4.h | ||
| freedreno_uuid.c | ||
| freedreno_uuid.h | ||
| meson.build | ||
| README.rst | ||
Overview ======== Common functionality shared between freedreno drivers (that are not registers, layout or the compiler), e.g UUID generation.