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 <kherbst@redhat.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21601>
(cherry picked from commit 53dda476a9)
This commit is contained in:
Dave Airlie 2023-03-01 04:17:22 +10:00 committed by Dylan Baker
parent 042a4edec5
commit 79cf2f6d01
2 changed files with 2 additions and 2 deletions

View file

@ -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
},

View file

@ -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);
}