lima: fix PIPE_CAP_* to mark features that aren't supported yet
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 11 Jan 2020 03:58:41 +0000 (19:58 -0800)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sun, 12 Jan 2020 08:10:04 +0000 (00:10 -0800)
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 <yuq825@gmail.com>
Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_screen.c

index 5d2696e4866242562913cf158ff07233dece7bac..8a933951c062efaf674fe355ba8ed16777fd0508 100644 (file)
@@ -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);
    }