Increase memory size of Lavapipe device?

2023-04-11 Thread George Karpathios
Hi list,

I'd like to ask how I can increase the memory of the Lavapipe device
over 2GB that vulkaninfo reports. I didn't find any configuration options
or environment variables available. Should I just manually change the size
property at lvp_device.c:1441 and rebuild or is it more complicated? Thanks
in advance.

Best regards,
George


Re: Increase memory size of Lavapipe device?

2023-04-11 Thread Mike Blumenkrantz
Hm that should probably query the total available memory on the system. You
can submit an MR to make that change if you're interested?


Mike

On Tue, Apr 11, 2023 at 9:35 AM George Karpathios  wrote:

> Hi list,
>
> I'd like to ask how I can increase the memory of the Lavapipe device
> over 2GB that vulkaninfo reports. I didn't find any configuration options
> or environment variables available. Should I just manually change the size
> property at lvp_device.c:1441 and rebuild or is it more complicated? Thanks
> in advance.
>
> Best regards,
> George
>


Re: Increase memory size of Lavapipe device?

2023-04-11 Thread Jose Fonseca
Sounds good, but on 32-bits processes it's better lavapipe doesn't exceed 2GB, 
to leave enough VA for the process/kernel.

Also, LP_MAX_TEXTURE_SIZE (individual resource size) needs to stay at 2GB.

Jose


From: mesa-dev  on behalf of Mike 
Blumenkrantz 
Sent: Tuesday, April 11, 2023 14:37
To: George Karpathios 
Cc: mesa-dev@lists.freedesktop.org 
Subject: Re: Increase memory size of Lavapipe device?

Hm that should probably query the total available memory on the system. You can 
submit an MR to make that change if you're interested?


Mike

On Tue, Apr 11, 2023 at 9:35 AM George Karpathios 
mailto:gkar...@gmail.com>> wrote:
Hi list,

I'd like to ask how I can increase the memory of the Lavapipe device over 2GB 
that vulkaninfo reports. I didn't find any configuration options or environment 
variables available. Should I just manually change the size property at 
lvp_device.c:1441 and rebuild or is it more complicated? Thanks in advance.

Best regards,
George