summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-11-09 15:51:56 -0800
committerEric Anholt <[email protected]>2017-11-09 15:51:56 -0800
commit62deeaa23a3f0d49058defffdb699e9378ef225d (patch)
tree58277fa2c621efc08e64aab4f13f1f3b56910251 /src/gallium
parent272fe9494232baab159d10901aecfe1786595b17 (diff)
broadcom/vc4: Fix simulator mode for the MADVISE usage.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc4/vc4_simulator.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_simulator.c b/src/gallium/drivers/vc4/vc4_simulator.c
index a73e409694c..3afb16e1fcf 100644
--- a/src/gallium/drivers/vc4/vc4_simulator.c
+++ b/src/gallium/drivers/vc4/vc4_simulator.c
@@ -619,6 +619,10 @@ vc4_simulator_get_param_ioctl(int fd, struct drm_vc4_get_param *args)
args->value = true;
return 0;
+ case DRM_VC4_PARAM_SUPPORTS_MADVISE:
+ errno = -EINVAL;
+ return -1;
+
case DRM_VC4_PARAM_V3D_IDENT0:
args->value = 0x02000000;
return 0;