aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_screen.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-07-15 09:53:03 +1000
committerDave Airlie <airlied@redhat.com>2020-07-20 15:14:09 +1000
commit41c7bb6ec0444221ed4330529e0c0664699b56c7 (patch)
tree1977e0f5375c49bb562e1190b52822d8913f0320 /src/gallium/drivers/llvmpipe/lp_screen.c
parent0e0b6d477b9bd3719b96229591529007484e9063 (diff)
downloadexternal_mesa3d-41c7bb6ec0444221ed4330529e0c0664699b56c7.tar.gz
external_mesa3d-41c7bb6ec0444221ed4330529e0c0664699b56c7.tar.bz2
external_mesa3d-41c7bb6ec0444221ed4330529e0c0664699b56c7.zip
llvmpipe: add framebuffer fetching support (v1.1)
v1.1: Merge two if blocks (Roland) Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5914>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index c92d1c4e023..86f2ec5751e 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -331,6 +331,10 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
return 1;
case PIPE_CAP_DRAW_PARAMETERS:
return 1;
+ case PIPE_CAP_FBFETCH:
+ return 8;
+ case PIPE_CAP_FBFETCH_COHERENT:
+ return 0;
case PIPE_CAP_MULTI_DRAW_INDIRECT:
case PIPE_CAP_MULTI_DRAW_INDIRECT_PARAMS:
return 1;
@@ -364,7 +368,6 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_TGSI_CAN_READ_OUTPUTS:
case PIPE_CAP_NATIVE_FENCE_FD:
case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
- case PIPE_CAP_FBFETCH:
case PIPE_CAP_TGSI_MUL_ZERO_WINS:
case PIPE_CAP_TGSI_CLOCK:
case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE: