[Mesa-dev] [Mesa PATCH 2/3] i965: Use the new drm_intel_bo offset64 field.

Eric Anholt eric at anholt.net
Wed Jan 15 12:47:21 PST 2014


Kenneth Graunke <kenneth at whitecape.org> writes:

> libdrm 2.4.52 introduces a new 'uint64_t offset64' field, intended to
> replace the old 'unsigned long offset' field.  To preserve ABI, libdrm
> continues to store the presumed offset in both locations.
>
> On Broadwell, a 64-bit kernel may place BOs at "high" (> 4G) addresses.
> However, with a 32-bit userspace, the 'unsigned long offset' field will
> only be 32-bit, which is not large enough to hold this value.  We need
> to use a proper uint64_t (like the kernel does).
>
> Technically, a lot of this code doesn't affect Broadwell, so we could
> leave it using the old field.  But it makes sense to just switch to the
> new, properly typed field.

This series is:

Reviewed-by: Eric Anholt <eric at anholt.net>

I was concerned about brw_program_reloc returning uint32_t still, except
that on gen5+ it's always just returning the incoming prog_offset from
the state base address.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140115/ca204175/attachment.pgp>


More information about the mesa-dev mailing list