OSDN Git Service

mesa: Refactor update_array_format to make _mesa_update_array_format_public
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 4 Nov 2015 00:09:22 +0000 (16:09 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 24 Nov 2015 19:50:28 +0000 (11:50 -0800)
commiteb0749bf154f2a9e12689d0e39e7af1da51e353f
tree385fb802246169909ce941cadd3b3b49bc5402bb
parentf727742cdb366f4bf01c46e6648ef00a32ceca4d
mesa: Refactor update_array_format to make _mesa_update_array_format_public

Pulls the parts of update_array_format that aren't just parameter
validation out into a function that can be called from other parts of
Mesa (e.g., meta).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
(cherry picked from commit a336fcd36a4743c1ea6f8549cb31b48277359717)
src/mesa/main/varray.c
src/mesa/main/varray.h