From 4f096d0d880fee6721773e96c8c77cec8f2798f5 Mon Sep 17 00:00:00 2001 From: Antonio Gomes Date: Fri, 6 Jan 2023 23:54:24 -0300 Subject: [PATCH] llvmpipe: Add new caps PIPE_CAP_LINEAR_IMAGE_(PITCH_ALIGNMENT|BASE_ADDRESS_ALIGNMENT) Part-of: --- src/gallium/drivers/llvmpipe/lp_screen.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 568f4e2..8423c6d 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -226,6 +226,10 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) return 64; case PIPE_CAP_TEXTURE_BUFFER_OBJECTS: return 1; + case PIPE_CAP_LINEAR_IMAGE_PITCH_ALIGNMENT: + return 1; + case PIPE_CAP_LINEAR_IMAGE_BASE_ADDRESS_ALIGNMENT: + return 1; /* Adressing that many 64bpp texels fits in an i32 so this is a reasonable value */ case PIPE_CAP_MAX_TEXEL_BUFFER_ELEMENTS_UINT: return 134217728; -- 2.7.4