mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 00:46:17 +00:00
lib/display: Add a way to specify we don't care about the pipe to use
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
5ec399b4a6
commit
09faa45f52
@ -1227,10 +1227,14 @@ void igt_output_set_pipe(igt_output_t *output, enum pipe pipe)
|
|||||||
{
|
{
|
||||||
igt_display_t *display = output->display;
|
igt_display_t *display = output->display;
|
||||||
|
|
||||||
|
if (pipe == PIPE_ANY) {
|
||||||
|
LOG(display, "%s: set_pipe(any)\n", igt_output_name(output));
|
||||||
|
output->pending_crtc_idx_mask = -1UL;
|
||||||
|
} else {
|
||||||
LOG(display, "%s: set_pipe(%c)\n", igt_output_name(output),
|
LOG(display, "%s: set_pipe(%c)\n", igt_output_name(output),
|
||||||
pipe_name(pipe));
|
pipe_name(pipe));
|
||||||
|
|
||||||
output->pending_crtc_idx_mask = 1 << pipe;
|
output->pending_crtc_idx_mask = 1 << pipe;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
igt_plane_t *igt_ouput_get_plane(igt_output_t *output, enum igt_plane plane)
|
igt_plane_t *igt_ouput_get_plane(igt_output_t *output, enum igt_plane plane)
|
||||||
|
@ -170,6 +170,12 @@ void igt_plane_set_position(igt_plane_t *plane, int x, int y);
|
|||||||
for (int i__ = 0; i__ < (display)->n_outputs; i__++) \
|
for (int i__ = 0; i__ < (display)->n_outputs; i__++) \
|
||||||
if ((output = &(display)->outputs[i__]), output->valid)
|
if ((output = &(display)->outputs[i__]), output->valid)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Can be used with igt_output_set_pipe() to mean we don't care about the pipe
|
||||||
|
* that should drive this output
|
||||||
|
*/
|
||||||
|
#define PIPE_ANY (-1)
|
||||||
|
|
||||||
#define IGT_FIXED(i,f) ((i) << 16 | (f))
|
#define IGT_FIXED(i,f) ((i) << 16 | (f))
|
||||||
|
|
||||||
#endif /* __IGT_KMS_H__ */
|
#endif /* __IGT_KMS_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user