Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2014-01-13 Thread Kenneth Graunke
On 01/13/2014 01:04 PM, Eric Anholt wrote: > Kenneth Graunke writes: > >> On 01/09/2014 09:31 PM, Eric Anholt wrote: >>> Kenneth Graunke writes: >>> On 12/13/2013 09:28 AM, Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: >> Broadwell uses 48-b

Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2014-01-13 Thread Eric Anholt
Kenneth Graunke writes: > On 01/09/2014 09:31 PM, Eric Anholt wrote: >> Kenneth Graunke writes: >> >>> On 12/13/2013 09:28 AM, Daniel Vetter wrote: On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: > Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, >

Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2014-01-10 Thread Kenneth Graunke
On 01/09/2014 09:31 PM, Eric Anholt wrote: > Kenneth Graunke writes: > >> On 12/13/2013 09:28 AM, Daniel Vetter wrote: >>> On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, and the second DWord is the h

Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2014-01-09 Thread Eric Anholt
Kenneth Graunke writes: > On 12/13/2013 09:28 AM, Daniel Vetter wrote: >> On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: >>> Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, >>> and the second DWord is the high 16 bits. >>> >>> Since individual buffers shoul

Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2013-12-13 Thread Daniel Vetter
On Fri, Dec 13, 2013 at 10:04:53AM -0800, Kenneth Graunke wrote: > On 12/13/2013 09:28 AM, Daniel Vetter wrote: > > On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: > >> Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, > >> and the second DWord is the high 16 bi

Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2013-12-13 Thread Kenneth Graunke
On 12/13/2013 09:28 AM, Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: >> Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, >> and the second DWord is the high 16 bits. >> >> Since individual buffers shouldn't be larger than 4GB in size,

Re: [Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2013-12-13 Thread Daniel Vetter
On Thu, Dec 12, 2013 at 01:26:40AM -0800, Kenneth Graunke wrote: > Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, > and the second DWord is the high 16 bits. > > Since individual buffers shouldn't be larger than 4GB in size, any > offsets into those buffers (buffer->offset +

[Mesa-dev] [PATCH 08/10] i965: Introduce an OUT_RELOC64 macro.

2013-12-12 Thread Kenneth Graunke
Broadwell uses 48-bit addresses. The first DWord is the low 32 bits, and the second DWord is the high 16 bits. Since individual buffers shouldn't be larger than 4GB in size, any offsets into those buffers (buffer->offset + delta) should fit in the low 32 bits. So I believe we can simply emit 0 f