OSDN Git Service

anv/formats: Add an anv_get_format helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 16 May 2016 04:15:59 +0000 (21:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 May 2016 19:17:22 +0000 (12:17 -0700)
commit8ed429a4f0d58eafe3e3212552af6fb0cb78feeb
tree0d0d24253ce01f136b6b8b0a394a970753fed33f
parent13f5cee663f693bc2cafeda9c3d6fc3537334dde
anv/formats: Add an anv_get_format helper

This commit removes anv_format_for_vk_format and adds an anv_get_format
helper.  The anv_get_format helper returns the anv_format by-value.  Unlike
anv_format_for_vk_format the format returned by anv_get_format is 100%
accurate and includes any tweaks needed for tiled vs. linear.
anv_get_isl_format is now just a wrapper around anv_get_format that picks
off just the isl_format.
src/intel/vulkan/anv_formats.c
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_meta_copy.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_pipeline_util.h