mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-19 13:56:23 +00:00
testdisplay/skl: Add command line options for Yb/Yf tiled fbs
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
ff451a6d43
commit
7b8ba120b9
@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
#include <cairo.h>
|
#include <cairo.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <getopt.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@ -73,6 +74,8 @@
|
|||||||
|
|
||||||
#define SUBTEST_OPTS 1
|
#define SUBTEST_OPTS 1
|
||||||
#define HELP_DESCRIPTION 2
|
#define HELP_DESCRIPTION 2
|
||||||
|
#define Yb_OPT 3
|
||||||
|
#define Yf_OPT 4
|
||||||
|
|
||||||
static int tio_fd;
|
static int tio_fd;
|
||||||
struct termios saved_tio;
|
struct termios saved_tio;
|
||||||
@ -544,7 +547,7 @@ int update_display(void)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char optstr[] = "3hiaf:s:d:p:mrto:j:";
|
static char optstr[] = "3hiaf:s:d:p:mrto:j:y";
|
||||||
|
|
||||||
static void __attribute__((noreturn)) usage(char *name, char opt)
|
static void __attribute__((noreturn)) usage(char *name, char opt)
|
||||||
{
|
{
|
||||||
@ -645,6 +648,8 @@ int main(int argc, char **argv)
|
|||||||
{"run-subtest", 1, 0, SUBTEST_OPTS},
|
{"run-subtest", 1, 0, SUBTEST_OPTS},
|
||||||
{"help-description", 0, 0, HELP_DESCRIPTION},
|
{"help-description", 0, 0, HELP_DESCRIPTION},
|
||||||
{"help", 0, 0, 'h'},
|
{"help", 0, 0, 'h'},
|
||||||
|
{"yb", 0, 0, Yb_OPT},
|
||||||
|
{"yf", 0, 0, Yf_OPT},
|
||||||
{ 0, 0, 0, 0 }
|
{ 0, 0, 0, 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -697,6 +702,13 @@ int main(int argc, char **argv)
|
|||||||
case 't':
|
case 't':
|
||||||
tiling = LOCAL_I915_FORMAT_MOD_X_TILED;
|
tiling = LOCAL_I915_FORMAT_MOD_X_TILED;
|
||||||
break;
|
break;
|
||||||
|
case 'y':
|
||||||
|
case Yb_OPT:
|
||||||
|
tiling = LOCAL_I915_FORMAT_MOD_Y_TILED;
|
||||||
|
break;
|
||||||
|
case Yf_OPT:
|
||||||
|
tiling = LOCAL_I915_FORMAT_MOD_Yf_TILED;
|
||||||
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
qr_code = 1;
|
qr_code = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user