nouveau: Silence unhandled cap warnings
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Feb 2019 23:57:19 +0000 (15:57 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 9 Feb 2019 00:26:00 +0000 (16:26 -0800)
Nouveau apparently uses the u_screen helper but prints a warning in the
default case, so running any GL program would start grumbling.

Fixes: 8fa54bc5490 gallium: Add a PIPE_CAP_NIR_COMPACT_ARRAYS capability bit.
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 8e65eaf50b1cacb088b028fd18ef1a078a369074..018df7c1e34b371009d26a8ae3d7677815c55897 100644 (file)
@@ -316,6 +316,7 @@ nv50_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_QUERY_PIPELINE_STATISTICS_SINGLE:
    case PIPE_CAP_RGB_OVERRIDE_DST_ALPHA_BLEND:
    case PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS:
+   case PIPE_CAP_NIR_COMPACT_ARRAYS:
       return 0;
 
    case PIPE_CAP_VENDOR_ID:
index 4a289557e3b88766fe694816ebf404823a7814ca..6421105e3cf8f50258a1da4d129c7d2c827bec24 100644 (file)
@@ -345,6 +345,7 @@ nvc0_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_QUERY_PIPELINE_STATISTICS_SINGLE:
    case PIPE_CAP_RGB_OVERRIDE_DST_ALPHA_BLEND:
    case PIPE_CAP_GLSL_TESS_LEVELS_AS_INPUTS:
+   case PIPE_CAP_NIR_COMPACT_ARRAYS:
       return 0;
 
    case PIPE_CAP_VENDOR_ID: