Update XGL_FORMAT.
diff --git a/icd/intel/cmd_prepare.c b/icd/intel/cmd_prepare.c
index a8f6165..3f45691 100644
--- a/icd/intel/cmd_prepare.c
+++ b/icd/intel/cmd_prepare.c
@@ -156,7 +156,7 @@
                 flush_flags |= cmd_get_flush_flags(cmd,
                         img_get_layout_caches(img, image_memory_barrier->oldLayout),
                         img_get_layout_caches(img, image_memory_barrier->newLayout),
-                        (img->layout.format.numericFormat == XGL_NUM_FMT_DS));
+                        icd_format_is_ds(img->layout.format));
             }
             break;
         default: