commit | 7c084752c612c1763212830618ee0a86f4edf8f6 | [log] [tgz] |
---|---|---|
author | Eduardo Lima Mitev <elima@igalia.com> | Thu Mar 12 08:14:03 2015 +0100 |
committer | Eduardo Lima Mitev <elima@igalia.com> | Fri Mar 13 16:40:20 2015 +0100 |
tree | 250fb290eed50b83c67b69dab2efdb04a2d40818 | |
parent | 7b5bb97cefbf1d0cfef28bc974ee9a68024e3b45 [diff] |
mesa: Separate PBO validation checks from buffer mapping, to allow reuse Internal PBO functions such as _mesa_map_validate_pbo_source() and _mesa_validate_pbo_compressed_teximage() perform validation and buffer mapping within the same call. This patch takes out the validation into separate functions to allow reuse of functionality by other code (i.e, gl(Compressed)Tex(Sub)Image). Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>