From: Dave Airlie Date: Sun, 1 Sep 2019 23:52:55 +0000 (+1000) Subject: llvmpipe: make texture buffer offset alignment == 16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cac880831b21d2fcddf6477518a458dca9fc217;p=mesa.git llvmpipe: make texture buffer offset alignment == 16 Due to use vmovdqa instructions in the asm, which require 16-byte aligned buffers. This fixes a crash in KHR-GLES31.core.texture_buffer.texture_buffer_texture_buffer_range Reviewed-by: Roland Scheidegger --- diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 37bb29f9543..96c7623c461 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -241,7 +241,7 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE: return 65536; case PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT: - return 1; + return 16; case PIPE_CAP_PREFER_BLIT_BASED_TEXTURE_TRANSFER: return 0; case PIPE_CAP_MAX_VIEWPORTS: