mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-25 17:02:12 +08:00
rm modetest
This commit is contained in:
@@ -1 +0,0 @@
|
||||
/libdrm/
|
||||
@@ -1,3 +0,0 @@
|
||||
The modetest binary used in AGNOS is built here.
|
||||
|
||||
It's patched to remove the test pattern.
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
|
||||
cd $DIR
|
||||
|
||||
|
||||
if [ ! -d libdrm/ ]; then
|
||||
git clone https://github.com/grate-driver/libdrm
|
||||
fi
|
||||
cd libdrm
|
||||
git fetch --all
|
||||
git checkout 3e3c53e
|
||||
git reset --hard
|
||||
git clean -xdff .
|
||||
@@ -1,35 +0,0 @@
|
||||
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
|
||||
index 975dcbcd..8d71f08b 100644
|
||||
--- a/tests/modetest/modetest.c
|
||||
+++ b/tests/modetest/modetest.c
|
||||
@@ -1393,7 +1393,7 @@ static void set_mode(struct device *dev, struct pipe_arg *pipes, unsigned int co
|
||||
|
||||
bo = bo_create(dev->fd, pipes[0].fourcc, dev->mode.width,
|
||||
dev->mode.height, handles, pitches, offsets,
|
||||
- UTIL_PATTERN_SMPTE);
|
||||
+ UTIL_PATTERN_PLAIN);
|
||||
if (bo == NULL)
|
||||
return;
|
||||
|
||||
@@ -2080,7 +2080,7 @@ int main(int argc, char **argv)
|
||||
if (drop_master)
|
||||
drmDropMaster(dev.fd);
|
||||
|
||||
- getchar();
|
||||
+ // getchar();
|
||||
|
||||
if (test_cursor)
|
||||
clear_cursors(&dev);
|
||||
diff --git a/tests/util/pattern.c b/tests/util/pattern.c
|
||||
index 9fa0a417..b8d162f2 100644
|
||||
--- a/tests/util/pattern.c
|
||||
+++ b/tests/util/pattern.c
|
||||
@@ -823,7 +823,7 @@ static void fill_plain(void *planes[3],
|
||||
unsigned int height,
|
||||
unsigned int stride)
|
||||
{
|
||||
- memset(planes[0], 0x77, stride * height);
|
||||
+ memset(planes[0], 0x00, stride * height);
|
||||
}
|
||||
|
||||
/*
|
||||
Binary file not shown.
Reference in New Issue
Block a user