iris: Disable PIPE_CAP_PREFER_BACK_BUFFER_REUSE
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 19 Nov 2021 11:50:04 +0000 (03:50 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 9 Feb 2022 07:45:43 +0000 (07:45 +0000)
This cap bit only affects DRI_PRIME setups.  Since iris now uses the
blitter to perform dGPU -> iGPU copies asynchronously, it's better to
always use at least two backbuffers so the 3D engine can start rendering
the next frame during the copy.

See commit d17e75285732878bc3ee8307541c1b4f09cbee7c where this change
was made for radeonsi.

Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13877>

src/gallium/drivers/iris/iris_screen.c

index 97318e9..3070cbe 100644 (file)
@@ -259,6 +259,8 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_FENCE_SIGNAL:
    case PIPE_CAP_IMAGE_STORE_FORMATTED:
       return true;
+   case PIPE_CAP_PREFER_BACK_BUFFER_REUSE:
+      return false;
    case PIPE_CAP_FBFETCH:
       return BRW_MAX_DRAW_BUFFERS;
    case PIPE_CAP_FBFETCH_COHERENT: