[Mesa-dev] [PATCH v2 0/3][RFC]mesa/st: glsl_to_tgsi: improved temp-reg lifetime estimation
Gert Wollny
gw.fossdev at gmail.com
Fri Jun 16 16:16:52 UTC 2017
Hello Emil,
Am Freitag, den 16.06.2017, 15:21 +0100 schrieb Emil Velikov:
>
> Please don't use STL within core mesa code.
May I ask why? I always try to not re-implement already available
functionality and since mesa already uses C++ it seems kind of natural
to use the STL because it provides a well tested implementation for
containers and algorithms.
Anyway, to avoid code duplication, are there already alternative
implementations available within mesa for an array that can dynamically
grow like std::vector and std::stack, and for the algorithm
std::upper_bound working on an array?
A couple of additional ideas:
> - where possible try to split patches even further.
> IIRC 2/3 adds some 2kloc, which may be hard to review properly.
On one hand it seems something went wrong when I was rebasing the
patches, part of 1 ended up in 2 :/
When I correct this patch 2 will add ~1500 lines of which ~700 is real
functionality and ~800 are test code that doesn't go into the library.
I can probably split out 100 lines though, separating the two parts of
the algorithm.
> - do keep performance numbers within the commit summary.
> This way the details are preserved in git log for future references.
Okay.
many thanks for your comments,
Gert
More information about the mesa-dev
mailing list