render/vulkan: constify vulkan_format_props_find_modifier

master
Manuel Stoeckl 1 year ago committed by Simon Ser
parent 88a4b9eefd
commit 566c413d8f

@ -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 {

@ -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) {

Loading…
Cancel
Save