From: Andre Heider Date: Wed, 6 Feb 2019 09:53:18 +0000 (+0100) Subject: iris: improve PIPE_CAP_VIDEO_MEMORY bogus value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bffb65d28e1f8cc5cfcfff0176a4ed3d710236d2;p=mesa.git iris: improve PIPE_CAP_VIDEO_MEMORY bogus value -1 is a little too bogus for most games ;) Signed-off-by: Andre Heider --- 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;