From bffb65d28e1f8cc5cfcfff0176a4ed3d710236d2 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 6 Feb 2019 10:53:18 +0100 Subject: [PATCH] iris: improve PIPE_CAP_VIDEO_MEMORY bogus value -1 is a little too bogus for most games ;) Signed-off-by: Andre Heider --- src/gallium/drivers/iris/iris_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index 0ee07a7e4f6..728c2c23506 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -239,7 +239,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_DEVICE_ID: return screen->pci_id; case PIPE_CAP_VIDEO_MEMORY: - return 0xffffffff; // XXX: bogus + return INT_MAX; // XXX: bogus case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS: case PIPE_CAP_MAX_VARYINGS: return 32; -- 2.30.2