iris: Advertise coherent framebuffer fetches
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 15 May 2019 03:31:46 +0000 (20:31 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 23 May 2019 15:13:10 +0000 (08:13 -0700)
This lets us advertise GL_EXT_shader_framebuffer_fetch and
GL_KHR_blend_equation_advanced_coherent support.

src/gallium/drivers/iris/iris_screen.c

index 0435e8826effc857e89d54f44e21d1f43b07cd8e..611718e90df1ed271aaf8f8c7f866e6b615b252e 100644 (file)
@@ -193,7 +193,9 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_SURFACE_REINTERPRET_BLOCKS:
       return true;
    case PIPE_CAP_FBFETCH:
+      /* TODO: Support non-coherent FB fetch on Broadwell */
       return devinfo->gen >= 9 ? BRW_MAX_DRAW_BUFFERS : 0;
+   case PIPE_CAP_FBFETCH_COHERENT:
    case PIPE_CAP_CONSERVATIVE_RASTER_INNER_COVERAGE:
    case PIPE_CAP_POST_DEPTH_COVERAGE:
    case PIPE_CAP_SHADER_STENCIL_EXPORT: