OSDN Git Service

mesa: Move _mesa_base_tex_format() from teximage to glformats files
authorEduardo Lima Mitev <elima@igalia.com>
Thu, 24 Sep 2015 08:57:42 +0000 (10:57 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Sep 2015 19:35:26 +0000 (20:35 +0100)
commitcfddc456ae25f61dadda8c639628a918534154f8
tree240bfb94141765e7ed8499dfdfc966e18ca750f9
parent25e2a4136bc9b2cd503022eb39fc4ae9e219d1d4
mesa: Move _mesa_base_tex_format() from teximage to glformats files

This function will be needed as part of validating the combination of format,
type and internal format of texture pixel operations, which happens in
glformats files. Specifically, we want to be able to obtain the base format
of a resolved effective internal format, to compare it with the original
internal format passed.

Also, since this function deals solely with GL formats, it fits better in
glformats where the rest of similar format functionality rests.

The function is moved as-is, without any modification.

Cc: "11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Tested-by: Mark Janes <mark.a.janes@intel.com>
(cherry picked from commit c6bf1cd1467ea5d5370394ba99366dd8a59a385c)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Conflicts:
src/mesa/main/teximage.c
src/mesa/main/teximage.h
src/mesa/main/glformats.c
src/mesa/main/glformats.h
src/mesa/main/teximage.c
src/mesa/main/teximage.h