render, render/vulkan: add primaries to wlr_buffer_pass_options

This commit is contained in:
Simon Ser 2025-06-18 00:07:35 +02:00
parent a5706e2fb9
commit f3524de980
3 changed files with 39 additions and 5 deletions

View file

@ -7,6 +7,7 @@
#include <vulkan/vulkan.h>
#include <wlr/render/wlr_renderer.h>
#include <wlr/render/wlr_texture.h>
#include <wlr/render/color.h>
#include <wlr/render/drm_format_set.h>
#include <wlr/render/interface.h>
#include <wlr/util/addon.h>
@ -390,6 +391,9 @@ struct wlr_vk_render_pass {
bool srgb_pathway; // if false, rendering via intermediate blending buffer
struct wlr_color_transform *color_transform;
bool has_primaries;
struct wlr_color_primaries primaries;
struct wlr_drm_syncobj_timeline *signal_timeline;
uint64_t signal_point;

View file

@ -33,6 +33,8 @@ struct wlr_buffer_pass_options {
/* Color transform to apply to the output of the render pass,
* leave NULL to indicate sRGB/no custom transform */
struct wlr_color_transform *color_transform;
/** Primaries describing the color volume of the destination buffer */
const struct wlr_color_primaries *primaries;
/* Signal a timeline synchronization point when the render pass completes.
*