Re: [Mesa-dev] [libdrm PATCH] intel: Create a new drm_intel_bo offset64 field.

2014-01-15 Thread Eric Anholt
Ben Widawsky writes: > On Mon, Jan 13, 2014 at 11:41:11PM -0800, Eric Anholt wrote: >> Kenneth Graunke writes: >> >> > The existing 'offset' field is unfortunately typed as 'unsigned long', >> > which is unfortunately only 4 bytes with a 32-bit userspace. >> > >> > Traditionally, the hardware h

Re: [Mesa-dev] [libdrm PATCH] intel: Create a new drm_intel_bo offset64 field.

2014-01-14 Thread Ben Widawsky
On Mon, Jan 13, 2014 at 11:41:11PM -0800, Eric Anholt wrote: > Kenneth Graunke writes: > > > The existing 'offset' field is unfortunately typed as 'unsigned long', > > which is unfortunately only 4 bytes with a 32-bit userspace. > > > > Traditionally, the hardware has only supported 32-bit virtua

Re: [Mesa-dev] [libdrm PATCH] intel: Create a new drm_intel_bo offset64 field.

2014-01-13 Thread Eric Anholt
Kenneth Graunke writes: > The existing 'offset' field is unfortunately typed as 'unsigned long', > which is unfortunately only 4 bytes with a 32-bit userspace. > > Traditionally, the hardware has only supported 32-bit virtual addresses, > so even though the kernel uses a __u64, the value would al

Re: [Mesa-dev] [libdrm PATCH] intel: Create a new drm_intel_bo offset64 field.

2014-01-13 Thread Kenneth Graunke
On 01/13/2014 03:56 PM, Kenneth Graunke wrote: > The existing 'offset' field is unfortunately typed as 'unsigned long', > which is unfortunately only 4 bytes with a 32-bit userspace. > > Traditionally, the hardware has only supported 32-bit virtual addresses, > so even though the kernel uses a __u

[Mesa-dev] [libdrm PATCH] intel: Create a new drm_intel_bo offset64 field.

2014-01-13 Thread Kenneth Graunke
The existing 'offset' field is unfortunately typed as 'unsigned long', which is unfortunately only 4 bytes with a 32-bit userspace. Traditionally, the hardware has only supported 32-bit virtual addresses, so even though the kernel uses a __u64, the value would always fit. However, Broadwell suppo