mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
rusticl: limit global mem to 2GB
Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18802>
This commit is contained in:
parent
bb91117204
commit
3811834eb1
1 changed files with 6 additions and 2 deletions
|
|
@ -621,8 +621,12 @@ impl Device {
|
|||
}
|
||||
|
||||
pub fn max_mem_alloc(&self) -> cl_ulong {
|
||||
self.screen
|
||||
.compute_param(pipe_compute_cap::PIPE_COMPUTE_CAP_MAX_MEM_ALLOC_SIZE)
|
||||
// TODO: at the moment gallium doesn't support bigger buffers
|
||||
min(
|
||||
self.screen
|
||||
.compute_param(pipe_compute_cap::PIPE_COMPUTE_CAP_MAX_MEM_ALLOC_SIZE),
|
||||
0x80000000,
|
||||
)
|
||||
}
|
||||
|
||||
pub fn max_samplers(&self) -> cl_uint {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue