Module: Mesa Branch: main Commit: 53dda476a9e33503432b1f2d0b7da814377bb848 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=53dda476a9e33503432b1f2d0b7da814377bb848
Author: Dave Airlie <[email protected]> Date: Wed Mar 1 04:17:22 2023 +1000 llvmpipe: fix compute address bits to return native pointer size. On 32-bit systems llvm will only be dealing with 32-bit ptrs Reviewed-by: Karol Herbst <[email protected]> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21601> --- src/gallium/drivers/llvmpipe/lp_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 40b41af2457..568f4e2983c 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -565,7 +565,7 @@ llvmpipe_get_compute_param(struct pipe_screen *_screen, case PIPE_COMPUTE_CAP_ADDRESS_BITS: if (ret) { uint32_t *address_bits = ret; - *address_bits = 64; + *address_bits = sizeof(void*) * 8; } return sizeof(uint32_t); }
