mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 15:31:28 +00:00
config/output: Stringify render format when logging it
This commit is contained in:
parent
034d02f8a5
commit
9765c29be1
|
@ -10,6 +10,7 @@
|
||||||
#include <wlr/types/wlr_output_layout.h>
|
#include <wlr/types/wlr_output_layout.h>
|
||||||
#include <wlr/types/wlr_output.h>
|
#include <wlr/types/wlr_output.h>
|
||||||
#include <wlr/types/wlr_output_swapchain_manager.h>
|
#include <wlr/types/wlr_output_swapchain_manager.h>
|
||||||
|
#include <xf86drm.h>
|
||||||
#include "sway/config.h"
|
#include "sway/config.h"
|
||||||
#include "sway/desktop/transaction.h"
|
#include "sway/desktop/transaction.h"
|
||||||
#include "sway/input/cursor.h"
|
#include "sway/input/cursor.h"
|
||||||
|
@ -673,7 +674,9 @@ static void dump_output_state(struct wlr_output *wlr_output, struct wlr_output_s
|
||||||
sway_log(SWAY_DEBUG, " enabled: %s", state->enabled ? "yes" : "no");
|
sway_log(SWAY_DEBUG, " enabled: %s", state->enabled ? "yes" : "no");
|
||||||
}
|
}
|
||||||
if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) {
|
if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) {
|
||||||
sway_log(SWAY_DEBUG, " render_format: %d", state->render_format);
|
char *format_name = drmGetFormatName(state->render_format);
|
||||||
|
sway_log(SWAY_DEBUG, " render_format: %s", format_name);
|
||||||
|
free(format_name);
|
||||||
}
|
}
|
||||||
if (state->committed & WLR_OUTPUT_STATE_MODE) {
|
if (state->committed & WLR_OUTPUT_STATE_MODE) {
|
||||||
if (state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM) {
|
if (state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM) {
|
||||||
|
|
Loading…
Reference in a new issue