From 1b97d9c18008b4577164f2d55ac8046b1c1cf72f Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 9 May 2019 14:07:45 +0200 Subject: [PATCH] panfrost: Add CAPFs for conservative rasterization Just do what everybody else but Nouveau does and return 0.0f. This prevents the repeated logging of these messages on startup: Unexpected PIPE_CAPF 6 query Unexpected PIPE_CAPF 7 query Unexpected PIPE_CAPF 8 query Signed-off-by: Tomeu Vizoso Reviewed-by: Emil Velikov Reviewed-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_screen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c index 3af82f6..10e9ee2 100644 --- a/src/gallium/drivers/panfrost/pan_screen.c +++ b/src/gallium/drivers/panfrost/pan_screen.c @@ -398,6 +398,11 @@ panfrost_get_paramf(struct pipe_screen *screen, enum pipe_capf param) case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS: return 16.0; /* arbitrary */ + case PIPE_CAPF_MIN_CONSERVATIVE_RASTER_DILATE: + case PIPE_CAPF_MAX_CONSERVATIVE_RASTER_DILATE: + case PIPE_CAPF_CONSERVATIVE_RASTER_DILATE_GRANULARITY: + return 0.0f; + default: debug_printf("Unexpected PIPE_CAPF %d query\n", param); return 0.0; -- 2.7.4