Module: Mesa Branch: staging/23.0 Commit: 79cf2f6d0154fd7c3172c6c386fdd613974b60e1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=79cf2f6d0154fd7c3172c6c386fdd613974b60e1
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> (cherry picked from commit 53dda476a9e33503432b1f2d0b7da814377bb848) --- .pick_status.json | 2 +- src/gallium/drivers/llvmpipe/lp_screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index d38f2381f3d..2aeabed0e71 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -49,7 +49,7 @@ "description": "llvmpipe: fix compute address bits to return native pointer size.", "nominated": true, "nomination_type": 0, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": null }, diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 8e8021523d6..644c3845327 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -564,7 +564,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); }
