[Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this adds another callback in the sampler struct containing get_dims entry point. This is used to query the driver for the texture resource dimensions for the resource bound to the current sampler. Signed-off-by: Dave Airlie airl...@redhat.com ---

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Brian Paul
How would the TXQ instruction be implemented for a hardware driver? Is there really a HW GPU instruction that returns the size of a texture? Otherwise, this seems like something we could implement in the state tracker by putting the texture size into a constant buffer slot. Then we'd have it

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Dave Airlie
On Thu, Aug 25, 2011 at 2:28 PM, Brian Paul bri...@vmware.com wrote: How would the TXQ instruction be implemented for a hardware driver? Same way, I have implemented it on R600. Is there really a HW GPU instruction that returns the size of a texture? Yes. RESINFO instruction at least on

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Keith Whitwell
On Thu, 2011-08-25 at 07:28 -0600, Brian Paul wrote: How would the TXQ instruction be implemented for a hardware driver? Is there really a HW GPU instruction that returns the size of a texture? Yes, that's correct. Otherwise, this seems like something we could implement in the state

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Dave Airlie
On Thu, Aug 25, 2011 at 2:43 PM, Keith Whitwell kei...@vmware.com wrote: On Thu, 2011-08-25 at 07:28 -0600, Brian Paul wrote: How would the TXQ instruction be implemented for a hardware driver? Is there really a HW GPU instruction that returns the size of a texture? Yes, that's correct.

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/25/2011 06:28 AM, Brian Paul wrote: How would the TXQ instruction be implemented for a hardware driver? Is there really a HW GPU instruction that returns the size of a texture? Otherwise, this seems like something we could implement in

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Kenneth Graunke
On 08/25/2011 07:00 AM, Dave Airlie wrote: On Thu, Aug 25, 2011 at 2:43 PM, Keith Whitwell kei...@vmware.com wrote: On Thu, 2011-08-25 at 07:28 -0600, Brian Paul wrote: How would the TXQ instruction be implemented for a hardware driver? Is there really a HW GPU instruction that returns the

Re: [Mesa-dev] [PATCH 1/6] tgsi: add TXQ support.

2011-08-25 Thread Keith Whitwell
On Thu, 2011-08-25 at 15:00 +0100, Dave Airlie wrote: On Thu, Aug 25, 2011 at 2:43 PM, Keith Whitwell kei...@vmware.com wrote: On Thu, 2011-08-25 at 07:28 -0600, Brian Paul wrote: How would the TXQ instruction be implemented for a hardware driver? Is there really a HW GPU instruction that