mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
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>
This commit is contained in:
parent
67904a36a6
commit
53dda476a9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue