summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_formats.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-05-27 17:14:29 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-05-27 17:17:09 -0700
commit10bc9f7024f7a15ffbccaa49eca9447aaad86ce3 (patch)
treef5e1814a282bf53765d92375bca4201994490e33 /src/intel/vulkan/anv_formats.c
parentb16326c74047e3d75ad3fbdd14ce31dbfce067e5 (diff)
downloadexternal_mesa3d-10bc9f7024f7a15ffbccaa49eca9447aaad86ce3.zip
external_mesa3d-10bc9f7024f7a15ffbccaa49eca9447aaad86ce3.tar.gz
external_mesa3d-10bc9f7024f7a15ffbccaa49eca9447aaad86ce3.tar.bz2
anv/formats: Map VK_FORMAT_UNDEFINED to ISL_FORMAT_UNSUPPORTED
At one point in time, we may have used the mapping to ISL_FORMAT_RAW for certain buffer surfaces but that time has long since passed. This fixes a bug where doing format queries on VK_FORMAT_UNDEFINED would assert-fail.
Diffstat (limited to 'src/intel/vulkan/anv_formats.c')
-rw-r--r--src/intel/vulkan/anv_formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c
index e7113e3..e7e0eca 100644
--- a/src/intel/vulkan/anv_formats.c
+++ b/src/intel/vulkan/anv_formats.c
@@ -50,7 +50,7 @@
* bspec) names are in LSB -> MSB order while VK formats are MSB -> LSB.
*/
static const struct anv_format anv_formats[] = {
- fmt(VK_FORMAT_UNDEFINED, ISL_FORMAT_RAW),
+ fmt(VK_FORMAT_UNDEFINED, ISL_FORMAT_UNSUPPORTED),
fmt(VK_FORMAT_R4G4_UNORM_PACK8, ISL_FORMAT_UNSUPPORTED),
fmt(VK_FORMAT_R4G4B4A4_UNORM_PACK16, ISL_FORMAT_A4B4G4R4_UNORM),
swiz_fmt(VK_FORMAT_B4G4R4A4_UNORM_PACK16, ISL_FORMAT_A4B4G4R4_UNORM, BGRA),