From: Vasily Khoruzhick Date: Sat, 11 Jan 2020 03:58:41 +0000 (-0800) Subject: lima: fix PIPE_CAP_* to mark features that aren't supported yet X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=f06be7945725c89851380883e263c129d3b395a3 lima: fix PIPE_CAP_* to mark features that aren't supported yet lima doesn't support alpha test, flat shading, two-sided color nor clip planes. We can enable these caps when corresponding hw features are implemented in the driver. Reviewed-by: Qiang Yu Tested-by: Andreas Baierl Signed-off-by: Vasily Khoruzhick --- diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c index 5d2696e4866..8a933951c06 100644 --- a/src/gallium/drivers/lima/lima_screen.c +++ b/src/gallium/drivers/lima/lima_screen.c @@ -143,6 +143,12 @@ lima_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER: return 0; + case PIPE_CAP_ALPHA_TEST: + case PIPE_CAP_FLATSHADE: + case PIPE_CAP_TWO_SIDED_COLOR: + case PIPE_CAP_CLIP_PLANES: + return 0; + default: return u_pipe_screen_get_param_defaults(pscreen, param); }