[Mesa-dev] [PATCH 1/2] gallium: Add PIPE_CAP_USER_MEMORY_PAGE_SIZE for page size of user pointers
awatry at gmail.com
Thu Aug 17 03:33:08 UTC 2017
On Wed, Aug 16, 2017 at 9:48 PM, Alex Deucher <alexdeucher at gmail.com> wrote:
> On Wed, Aug 16, 2017 at 10:39 PM, Michel Dänzer <michel at daenzer.net> wrote:
>> On 17/08/17 10:52 AM, Aaron Watry wrote:
>>> PIPE_CAP_RESOURCE_FROM_USER_MEMORY says that size must be page aligned,
>>> but doesn't necessarily say anything about the size of those pages.
>> Is there any case known so far where it's not the CPU page size?
> It's always the CPU page size. The limitation is not a hw limitation,
> it's a sw limitation with the way the kernel handles creating BOs from
> user memory.
So this won't change with the 2MB pages that are coming up for Vega?
If so, I guess I can just use getpagesize() in patch 2 for now and skip the CAP.
>> Earthling Michel Dänzer | http://www.amd.com
>> Libre software enthusiast | Mesa and X developer
>> mesa-dev mailing list
>> mesa-dev at lists.freedesktop.org
More information about the mesa-dev