[Mesa-dev] gallium and ARB_texture_query_levels

2014-02-24 Thread Dave Airlie
I've taken a quick look at ARB_texture_query_levels, and the HW generally seems to implement this by returning it in the W channel of RESINFO, which would map to the TXQ instruction, So my initial implementation added a LEVQ TGSI instruction but I do think this isn't representative of the hw and

Re: [Mesa-dev] gallium and ARB_texture_query_levels

2014-02-24 Thread Ilia Mirkin
On Mon, Feb 24, 2014 at 3:38 AM, Dave Airlie airl...@gmail.com wrote: I've taken a quick look at ARB_texture_query_levels, and the HW generally seems to implement this by returning it in the W channel of RESINFO, which would map to the TXQ instruction, So my initial implementation added a

Re: [Mesa-dev] gallium and ARB_texture_query_levels

2014-02-24 Thread Chia-I Wu
On Mon, Feb 24, 2014 at 5:03 PM, Ilia Mirkin imir...@alum.mit.edu wrote: On Mon, Feb 24, 2014 at 3:38 AM, Dave Airlie airl...@gmail.com wrote: I've taken a quick look at ARB_texture_query_levels, and the HW generally seems to implement this by returning it in the W channel of RESINFO, which

Re: [Mesa-dev] gallium and ARB_texture_query_levels

2014-02-24 Thread Marek Olšák
Using TXQ for this sounds good to me. Marek On Mon, Feb 24, 2014 at 9:38 AM, Dave Airlie airl...@gmail.com wrote: I've taken a quick look at ARB_texture_query_levels, and the HW generally seems to implement this by returning it in the W channel of RESINFO, which would map to the TXQ

Re: [Mesa-dev] gallium and ARB_texture_query_levels

2014-02-24 Thread Roland Scheidegger
Am 24.02.2014 09:38, schrieb Dave Airlie: I've taken a quick look at ARB_texture_query_levels, and the HW generally seems to implement this by returning it in the W channel of RESINFO, which would map to the TXQ instruction, So my initial implementation added a LEVQ TGSI instruction but I