From 0d00c65e671e85212e54bcedacbee8edac29115f Mon Sep 17 00:00:00 2001
From: James Ross-Gowan <rossy@jrg.systems>
Date: Tue, 25 Jan 2022 01:10:28 +1100
Subject: [PATCH] d3d11/formats: correctly mark blittable formats in <FL11_0

Blit emulation in FL10_1 and below uses a render pass, which means
textures are blittable if they're sampleable and renderable. So this was
a typo...
---
 src/d3d11/formats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/d3d11/formats.c b/src/d3d11/formats.c
index 4f1f5934d..973cffaa3 100644
--- a/src/d3d11/formats.c
+++ b/src/d3d11/formats.c
@@ -230,7 +230,7 @@ void pl_d3d11_setup_formats(struct pl_gpu *gpu)
         } else {
             // On <FL11_0 we use a raster pass
             static const enum pl_fmt_caps req = PL_FMT_CAP_RENDERABLE |
-                                                PL_FMT_CAP_STORABLE;
+                                                PL_FMT_CAP_SAMPLEABLE;
             if ((fmt->caps & req) == req)
                 fmt->caps |= PL_FMT_CAP_BLITTABLE;
         }
-- 
GitLab