aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast_setup
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2017-06-13 12:02:59 +0900
committerMichel Dänzer <[email protected]>2017-06-15 11:24:59 +0900
commit176e761513f9f9502248c0c8dad133d2d9f28d2d (patch)
treebd705b102af98028f26b1a0f9296d4e591bdc623 /src/mesa/swrast_setup
parent1c00af4264d795bf1fb3d13b7a966722a5984c4a (diff)
gallium/util: Break recursion in pipe_resource_reference
It calling itself recursively prevented it from being inlined, resulting in a copy being generated in every compilation unit referencing it. This bloated the text segment of the Gallium mega-driver *_dri.so by ~4%, and might also have impacted performance. Fixes: ecd6fce2611e ("mesa/st: support lowering multi-planar YUV") v2: * Add comment above pipe_resource_next_reference [Samuel Pitoiset] v3: * Use loop to unreference the full chain of resources referenced via the next members [Timothy Arceri] v4: * Stop chasing ->next chain at the first sub-resource which isn't destroyed [Nicolai Hähnle] Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/swrast_setup')
0 files changed, 0 insertions, 0 deletions