forked from Lainports/freebsd-ports
Virgil is a research project to investigate the possibility of creating a virtual 3D GPU for use inside qemu virtual machines, that allows the guest operating system to use the capabilities of the host GPU to accelerate 3D rendering. The plan is to have a guest GPU that is fully independent of the host GPU. WWW: https://virgil3d.github.io/
21 lines
722 B
C
21 lines
722 B
C
--- vtest/vtest_renderer.c.orig 2020-05-16 19:25:05 UTC
|
|
+++ vtest/vtest_renderer.c
|
|
@@ -35,7 +35,9 @@
|
|
#include <sys/uio.h>
|
|
#include <sys/socket.h>
|
|
#include <sys/mman.h>
|
|
+#include <sys/stat.h>
|
|
|
|
+
|
|
#include "vtest.h"
|
|
#include "vtest_shm.h"
|
|
#include "vtest_protocol.h"
|
|
@@ -158,7 +160,7 @@ int vtest_block_read(struct vtest_input *input, void *
|
|
if (getenv("VTEST_SAVE")) {
|
|
if (savefd == -1) {
|
|
savefd = open(getenv("VTEST_SAVE"),
|
|
- O_CLOEXEC|O_CREAT|O_WRONLY|O_TRUNC|O_DSYNC, S_IRUSR|S_IWUSR);
|
|
+ O_CLOEXEC|O_CREAT|O_WRONLY|O_TRUNC|O_SYNC, S_IRUSR|S_IWUSR);
|
|
if (savefd == -1) {
|
|
perror("error opening save file");
|
|
exit(1);
|