Skip to content

Instantly share code, notes, and snippets.

View tiagovignatti's full-sized avatar
🌱

Tiago Vignatti tiagovignatti

🌱
View GitHub Profile
chronos@localhost /tmp/chrome/src/out_gbm/Release $ ./content_perftests --gtest_filter=GpuMemoryBufferPerf* --ozone-platform=gbm --ozone-use-surfaceless
IMPORTANT DEBUGGING NOTE: batches of tests are run inside their
own process. For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with
--single-process-tests.
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
[9203:9203:0701/071357:1174537542843:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
Note: Google Test filter = GpuMemoryBufferPerfTests/GpuMemoryBufferPerfTest.Map/0:GpuMemoryBufferPerfTests/GpuMemoryBufferPerfTest.Map/1
[==========] Running 2 tests from 1 test case.
@tiagovignatti
tiagovignatti / gist:9a7c0cfa0523c04adc43
Created July 1, 2015 14:13
drm-intel vs shared-memory
chronos@localhost /tmp/chrome/src/out_gbm/Release $ ./content_perftests --gtest_filter=GpuMemoryBufferPerf* --ozone-platform=gbm --ozone-use-surfaceless --ozone-use-intel-drm
IMPORTANT DEBUGGING NOTE: batches of tests are run inside their
own process. For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with
--single-process-tests.
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
[9185:9185:0701/071244:1174465331146:ERROR:gpu_info_collector_ozone.cc(11)] Not implemented reached in std::string gpu::CollectDriverVersionNVidia()
Note: Google Test filter = GpuMemoryBufferPerfTests/GpuMemoryBufferPerfTest.Map/0:GpuMemoryBufferPerfTests/GpuMemoryBufferPerfTest.Map/1
[==========] Running 2 tests from 1 test case.
IMPORTANT DEBUGGING NOTE: each test is run inside its own process.
For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with either
--single_process (to run the test in one launcher/browser process) or
--single-process (to do the above, and also run Chrome in single-process mode).
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
Note: Google Test filter = ChildThreadImplGpuMemoryBufferPerfTests/ChildThreadImplGpuMemoryBufferPerfTest.Map/0
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
@tiagovignatti
tiagovignatti / gist:ce94bbe743ef1f2b0bf0
Last active August 29, 2015 14:22
content_browsertests in gbm platform
chronos@localhost //tmp/chrome/src/out_gbm/Debug $ ./content_browsertests --ozone-platform=gbm --ozone-use-surfaceless --no-sandbox --gtest_also_run_disabled_tests --gtest_filter=ChildThreadImplGpuMemoryBufferBrowserTests/ChildThreadImplGpuMemoryBufferBrowserTest.DISABLED_Map/0
IMPORTANT DEBUGGING NOTE: each test is run inside its own process.
For debugging a test inside a debugger, use the
--gtest_filter=<your_test_name> flag along with either
--single_process (to run the test in one launcher/browser process) or
--single-process (to do the above, and also run Chrome in single-process mode).
Using sharding settings from environment. This is shard 0/1
Using 1 parallel jobs.
Note: Google Test filter = ChildThreadImplGpuMemoryBufferBrowserTests/ChildThreadImplGpuMemoryBufferBrowserTest.DISABLED_Map/0
--- /media/git/drm-intel/drivers/gpu/drm/vgem/vgem_drv.c 2015-05-14 18:25:58.743234338 -0300
+++ /media/chromiumos/src/third_party/kernel/v3.8/drivers/gpu/drm/vgem/vgem_drv.c 2015-04-16 21:05:39.470843601 -0300
@@ -30,10 +30,11 @@
* software renderer and the X server for efficient buffer sharing.
*/
+#include "drmP.h"
+#include <linux/dma-buf.h>
#include <linux/module.h>
#include <linux/ramfs.h>
--- /media/git/drm-intel/drivers/gpu/drm/vgem/vgem_drv.c 2015-05-14 18:25:58.743234338 -0300
+++ /media/chromiumos/src/third_party/kernel/v3.14/drivers/gpu/drm/vgem/vgem_drv.c 2015-04-16 21:04:40.173736984 -0300
@@ -30,6 +30,7 @@
* software renderer and the X server for efficient buffer sharing.
*/
+#include "drmP.h"
#include <linux/module.h>
#include <linux/ramfs.h>
#include <linux/shmem_fs.h>
32a33
> #include "drmP.h"
47c48,57
< drm_gem_put_pages(&obj->base, obj->pages, false, false);
---
> int num_pages = obj->base.size / PAGE_SIZE;
> int i;
>
> for (i = 0; i < num_pages; i++) {
> if (obj->pages[i] == NULL)
32a33
> #include "drmP.h"
47c48,57
< drm_gem_put_pages(&obj->base, obj->pages, false, false);
---
> int num_pages = obj->base.size / PAGE_SIZE;
> int i;
>
> for (i = 0; i < num_pages; i++) {
> if (obj->pages[i] == NULL)
--- /media/git/drm-intel/drivers/gpu/drm/vgem/vgem_drv.c 2015-05-14 18:25:58.743234338 -0300
+++ /media/chromiumos/src/third_party/kernel/v3.14/drivers/gpu/drm/vgem/vgem_drv.c 2015-04-16 21:04:40.173736984 -0300
@@ -30,6 +30,7 @@
* software renderer and the X server for efficient buffer sharing.
*/
+#include "drmP.h"
#include <linux/module.h>
#include <linux/ramfs.h>
#include <linux/shmem_fs.h>
tiago@fisu:/media/chromiumos/src/platform/drm-tests$ gcc `pkg-config --libs --cflags libdrm_intel libkms gbm libdrm` vgem_fb_test.c -o vgem_fb_test/tmp/ccH2wQea.o: In function `mmap_dumb_bo':
vgem_fb_test.c:(.text+0x315): undefined reference to `drmIoctl'
/tmp/ccH2wQea.o: In function `setup_drm':
vgem_fb_test.c:(.text+0x3f9): undefined reference to `drmModeGetResources'
vgem_fb_test.c:(.text+0x458): undefined reference to `drmModeGetConnector'
vgem_fb_test.c:(.text+0x48a): undefined reference to `drmModeFreeConnector'
vgem_fb_test.c:(.text+0x4d0): undefined reference to `drmModeFreeResources'
vgem_fb_test.c:(.text+0x509): undefined reference to `drmModeGetEncoder'
vgem_fb_test.c:(.text+0x56a): undefined reference to `drmModeFreeEncoder'
vgem_fb_test.c:(.text+0x5b8): undefined reference to `drmModeFreeConnector'