[Mesa-dev] [PATCH 1/2] mesa/formats: only do type and component lookup for uncompressed formats
Chad Versace
chad.versace at intel.com
Fri Aug 21 13:56:06 PDT 2015
On Wed 19 Aug 2015, Nanley Chery wrote:
> From: Nanley Chery <nanley.g.chery at intel.com>
>
> Only uncompressed formats have a non-void type and actual components per pixel.
> Rename _mesa_format_to_type_and_comps to
> _mesa_uncompressed_format_to_type_and_comps and require callers to check if
> the format is not compressed.
>
> v2. include compressed format cases to avoid gcc warnings.
>
> Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
> ---
> src/mesa/main/format_utils.c | 2 +-
> src/mesa/main/formats.c | 89 +++++++++++++++++++++-----------------------
> src/mesa/main/formats.h | 2 +-
> src/mesa/main/mipmap.c | 2 +-
> 4 files changed, 46 insertions(+), 49 deletions(-)
Patch 1/2 is
Reviewed-by: Chad Versace <chad.versace at intel.com>
More information about the mesa-dev
mailing list