mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
anv/wsi: Use vk_format_info for asserts rather than anv_format
This commit is contained in:
parent
63dbb2c60a
commit
be94a23b44
2 changed files with 4 additions and 2 deletions
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "anv_wsi.h"
|
||||
|
||||
#include "vk_format_info.h"
|
||||
#include <util/hash_table.h>
|
||||
|
||||
#define MIN_NUM_IMAGES 2
|
||||
|
|
@ -642,7 +643,7 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain, struct wsi_wl_image *image,
|
|||
return result;
|
||||
|
||||
image->image = anv_image_from_handle(vk_image);
|
||||
assert(anv_format_is_color(image->image->format));
|
||||
assert(vk_format_is_color(image->image->vk_format));
|
||||
|
||||
struct anv_surface *surface = &image->image->color_surface;
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include "anv_wsi.h"
|
||||
|
||||
#include "vk_format_info.h"
|
||||
#include "util/hash_table.h"
|
||||
|
||||
struct wsi_x11_connection {
|
||||
|
|
@ -614,7 +615,7 @@ x11_image_init(struct anv_device *device, struct x11_swapchain *chain,
|
|||
return result;
|
||||
|
||||
image->image = anv_image_from_handle(image_h);
|
||||
assert(anv_format_is_color(image->image->format));
|
||||
assert(vk_format_is_color(image->image->vk_format));
|
||||
|
||||
VkDeviceMemory memory_h;
|
||||
result = anv_AllocateMemory(anv_device_to_handle(device),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue