aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-10-21 21:40:11 -0400
committerSimon Ser <contact@emersion.fr>2023-12-04 15:13:31 +0000
commit566c413d8ff70f075a7481035605ec710d610f45 (patch)
tree767203407057960cc266f491fbb0a25e9ff6b409
parent88a4b9eefd5b3f97dcf4da406b9f5dc17988a639 (diff)
render/vulkan: constify vulkan_format_props_find_modifier
-rw-r--r--include/render/vulkan.h2
-rw-r--r--render/vulkan/pixel_format.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/render/vulkan.h b/include/render/vulkan.h
index c0ba9b20..2794f340 100644
--- a/include/render/vulkan.h
+++ b/include/render/vulkan.h
@@ -125,7 +125,7 @@ struct wlr_vk_format_props {
void vulkan_format_props_query(struct wlr_vk_device *dev,
const struct wlr_vk_format *format);
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);
struct wlr_vk_pipeline_layout_key {
diff --git a/render/vulkan/pixel_format.c b/render/vulkan/pixel_format.c
index 3dd9c4d3..0568c023 100644
--- a/render/vulkan/pixel_format.c
+++ b/render/vulkan/pixel_format.c
@@ -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(
- 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;
const struct wlr_vk_format_modifier_props *mods;
if (render) {