mesa: create validate_buffer_sub_data() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 12 May 2017 07:10:10 +0000 (17:10 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 17 May 2017 00:12:03 +0000 (10:12 +1000)
commit5d29e6aab8ac05cbd73433b45958b2f82eefa91d
treedb63712297054ce10869c15684d4788209390cad
parent624dc2833e0d0263b434e234437dfbd9f4840b75
mesa: create validate_buffer_sub_data() helper

This change assumes meta will always pass valid arguments to
_mesa_buffer_sub_data().

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/drivers/common/meta.c
src/mesa/drivers/common/meta_blit.c
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h