diff options
author | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-09-03 17:10:52 -0700 |
---|---|---|
committer | Caio Marcelo de Oliveira Filho <[email protected]> | 2019-09-10 14:36:46 -0700 |
commit | eea3aa25aa20599578a20fb3256fdb90882abb2b (patch) | |
tree | e9224e56df25b125fc645ecb06422304772d36bb /src/mesa/drivers | |
parent | eda596d64b0e143005d52fe50331e099463813d9 (diff) |
mesa: Pack gl_program_parameter struct
The gl_register_file doesn't need 16 bits, so shorten it and use the
extra room for 'Padded' (also mark it as a single bit). This shrinks
the struct size from 32 bytes to 24 bytes.
See also 4794fbc86e3 ("mesa: reduce the size of gl_program_parameter")
that shrinked from 40 to 24 and later 7536af670b7 ("glsl: fix shader
cache for packed param list") that added `Padded`.
v2: Use just 5 bits for gl_register_file. (Timothy)
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
0 files changed, 0 insertions, 0 deletions