mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02: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>
(cherry picked from commit 53dda476a9)
This commit is contained in:
parent
042a4edec5
commit
79cf2f6d01
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue