[Mesa-dev] [PATCH v2 0/4] mesa/bufferobj: reduce code duplication

Nicolai Hähnle nhaehnle at gmail.com
Fri Jan 8 08:44:05 PST 2016


Hi,

thanks to Ian's well-founded remarks, here is a v2 of the series where
I added an explicit range parameter to the functions, and the offsets/
sizes are loaded iff that parameter is true. As a consequence, passing
NULL for these parameters will crash as expected (which I do agree is
better because it's less surprising), and the assertions become
unnecessary.

There are no piglit regressions, but I cannot test atomic and ssbo
buffers.

Does this variant look good to you?

Thanks,
Nicolai
--
 src/mesa/main/bufferobj.c | 649 ++++++++++++------------------------
 1 file changed, 210 insertions(+), 439 deletions(-)



More information about the mesa-dev mailing list