render/vulkan: constify vulkan_format_props_find_modifier

This commit is contained in:
Manuel Stoeckl 2023-10-21 21:40:11 -04:00 committed by Simon Ser
parent 88a4b9eefd
commit 566c413d8f
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ struct wlr_vk_format_props {
void vulkan_format_props_query(struct wlr_vk_device *dev, void vulkan_format_props_query(struct wlr_vk_device *dev,
const struct wlr_vk_format *format); const struct wlr_vk_format *format);
const struct wlr_vk_format_modifier_props *vulkan_format_props_find_modifier( const struct wlr_vk_format_modifier_props *vulkan_format_props_find_modifier(
struct wlr_vk_format_props *props, uint64_t mod, bool render); const struct wlr_vk_format_props *props, uint64_t mod, bool render);
void vulkan_format_props_finish(struct wlr_vk_format_props *props); void vulkan_format_props_finish(struct wlr_vk_format_props *props);
struct wlr_vk_pipeline_layout_key { struct wlr_vk_pipeline_layout_key {

View File

@ -569,7 +569,7 @@ void vulkan_format_props_finish(struct wlr_vk_format_props *props) {
} }
const struct wlr_vk_format_modifier_props *vulkan_format_props_find_modifier( const struct wlr_vk_format_modifier_props *vulkan_format_props_find_modifier(
struct wlr_vk_format_props *props, uint64_t mod, bool render) { const struct wlr_vk_format_props *props, uint64_t mod, bool render) {
uint32_t len; uint32_t len;
const struct wlr_vk_format_modifier_props *mods; const struct wlr_vk_format_modifier_props *mods;
if (render) { if (render) {