Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-18 Thread Chia-I Wu
On Wed, Apr 17, 2013 at 10:26 PM, Brian Paul bri...@vmware.com wrote: On 04/17/2013 02:31 AM, Jose Fonseca wrote: [snipped] How hard would it be to make GLSL IR an alternative IR for pipe drivers? On the driver side, it seems I only need to add PIPE_SHADER_IR_GLSL for the preferred IR and

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Chia-I Wu
On Wed, Apr 17, 2013 at 5:25 AM, Dave Airlie airl...@gmail.com wrote: Those are just ideas. I'm open to discussion. The driver is disabled by default and needs to be enabled via --with-gallium-drivers=i965. I think a warning + maybe something like

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Chia-I Wu
On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšák mar...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If you could extend Gallium to consume

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Daniel Vetter
On Wed, Apr 17, 2013 at 07:25:12AM +1000, Dave Airlie wrote: Those are just ideas. I'm open to discussion. The driver is disabled by default and needs to be enabled via --with-gallium-drivers=i965. I think a warning + maybe something like --with-gallium-drivers=i965g-unofficial might

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Jose Fonseca
- Original Message - On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšák mar...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Brian Paul
On 04/17/2013 02:31 AM, Jose Fonseca wrote: - Original Message - On Wed, Apr 17, 2013 at 8:09 AM, Marek Olšákmar...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wuolva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turnermatts...@gmail.com wrote: I

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Brian Paul
On 04/16/2013 01:58 PM, Chia-I Wu wrote: If you could agree with me, then, technically, we need to make the new driver less confusing. The driver is disabled by default, of course. It can be enabled with --with-gallium-drivers=i965 now. Would it help if I change it to something like

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-17 Thread Ian Romanick
On 04/16/2013 05:09 PM, Marek Olšák wrote: On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If you could extend Gallium to consume GLSL IR it might actually

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Chia-I Wu
Hi list, On Thu, Dec 13, 2012 at 6:41 AM, Chia-I Wu olva...@gmail.com wrote: Hi list, I've been working on i965g, a new pipe driver for Intel GEN6 (and later), for a while now. I would like to know if there is any interest in it and if it can be merged upstream. The code is currently

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Matt Turner
On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu olva...@gmail.com wrote: If there is no objection, I'd like to merge it in a day or two. My only objection is over adding a driver that is explicitly a toy, the confusion it will cause users, and the developer time it will waste. It wasn't uncommon for

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Ian Romanick
On 04/16/2013 09:58 AM, Matt Turner wrote: On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu olva...@gmail.com wrote: If there is no objection, I'd like to merge it in a day or two. My only objection is over adding a driver that is explicitly a toy, the confusion it will cause users, and the

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Kenneth Graunke
On 04/16/2013 09:58 AM, Matt Turner wrote: On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu olva...@gmail.com wrote: If there is no objection, I'd like to merge it in a day or two. My only objection is over adding a driver that is explicitly a toy, the confusion it will cause users, and the

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Matt Turner
On Tue, Apr 16, 2013 at 10:18 AM, Kenneth Graunke kenn...@whitecape.org wrote: On 04/16/2013 09:58 AM, Matt Turner wrote: On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu olva...@gmail.com wrote: If there is no objection, I'd like to merge it in a day or two. My only objection is over adding a

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Michael Karcher
Am Dienstag, den 16.04.2013, 10:23 -0700 schrieb Matt Turner: waste. It wasn't uncommon for a user to waste a nontrivial amount of someone's time in #intel-gfx only to discover that they were trying to use the (old) i965g driver that no one maintained. I wonder, should i965g be built by

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Matt Turner
On Tue, Apr 16, 2013 at 10:35 AM, Michael Karcher michael.karc...@fu-berlin.de wrote: I suspect there might be a comparable need for a i965g driver, as that chip has no vertex shader hardware. This isn't true. ___ mesa-dev mailing list

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Chia-I Wu
Hi Matt, On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu olva...@gmail.com wrote: If there is no objection, I'd like to merge it in a day or two. My only objection is over adding a driver that is explicitly a toy, the

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Kenneth Graunke
On 04/16/2013 10:35 AM, Michael Karcher wrote: Am Dienstag, den 16.04.2013, 10:23 -0700 schrieb Matt Turner: waste. It wasn't uncommon for a user to waste a nontrivial amount of someone's time in #intel-gfx only to discover that they were trying to use the (old) i965g driver that no one

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Chia-I Wu
Hi Ken, On Wed, Apr 17, 2013 at 1:18 AM, Kenneth Graunke kenn...@whitecape.orgwrote: On 04/16/2013 09:58 AM, Matt Turner wrote: On Tue, Apr 16, 2013 at 9:45 AM, Chia-I Wu olva...@gmail.com wrote: If there is no objection, I'd like to merge it in a day or two. My only objection is over

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Dave Airlie
i965 is fully programmable. It can do vertex, geometry, hull, domain, and fragment shading in hardware. The only thing the i965 classic driver uses software rendering for is some deprecated and rarely used GL 1.x features. I think the original 965G and 965GM chip suffered from a balance

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Dave Airlie
Those are just ideas. I'm open to discussion. The driver is disabled by default and needs to be enabled via --with-gallium-drivers=i965. I think a warning + maybe something like --with-gallium-drivers=i965g-unofficial might work, the thing is distros should probably be using i915g at this

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Jose Fonseca
- Original Message - Those are just ideas.  I'm open to discussion. The driver is disabled by default and needs to be enabled via --with-gallium-drivers=i965. I think a warning + maybe something like --with-gallium-drivers=i965g-unofficial might work, If not, then I'd

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2013-04-16 Thread Marek Olšák
On Tue, Apr 16, 2013 at 9:58 PM, Chia-I Wu olva...@gmail.com wrote: On Wed, Apr 17, 2013 at 12:58 AM, Matt Turner matts...@gmail.com wrote: I think everything Marek said was correct. If you could extend Gallium to consume GLSL IR it might actually be an interesting project. Yes, it is. I

[Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2012-12-12 Thread Chia-I Wu
Hi list, I've been working on i965g, a new pipe driver for Intel GEN6 (and later), for a while now. I would like to know if there is any interest in it and if it can be merged upstream. The code is currently available here https://github.com/olvaffe/mesa/tree/i965g The project was started

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2012-12-12 Thread Marek Olšák
If you want a piece of advice... it would be great to extend gallium to allow the GLSL IR to be passed to drivers directly. Once that's done, I think you can copy their shader codegen as-is with all optimizations or even share it. Also, I don't think Intel will move to Gallium if they can't use

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2012-12-12 Thread Stéphane Marchesin
On Wed, Dec 12, 2012 at 3:49 PM, Roland Scheidegger srol...@vmware.com wrote: This is interesting, personally I'm fine with getting this merged. That said, there was a i965g driver upstream before (though it never worked right IIRC and was probably gen4 or maybe gen5 too only due to its age),

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2012-12-12 Thread Chia-I Wu
On Thu, Dec 13, 2012 at 7:49 AM, Roland Scheidegger srol...@vmware.com wrote: This is interesting, personally I'm fine with getting this merged. That said, there was a i965g driver upstream before (though it never worked right IIRC and was probably gen4 or maybe gen5 too only due to its age),

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2012-12-12 Thread Chia-I Wu
Hi Marek, On Thu, Dec 13, 2012 at 8:58 AM, Marek Olšák mar...@gmail.com wrote: If you want a piece of advice... it would be great to extend gallium to allow the GLSL IR to be passed to drivers directly. Once that's done, I think you can copy their shader codegen as-is with all optimizations

Re: [Mesa-dev] new i965g pipe driver for Intel GEN6 (and later)

2012-12-12 Thread Chia-I Wu
On Thu, Dec 13, 2012 at 10:59 AM, Stéphane Marchesin stephane.marche...@gmail.com wrote: On Wed, Dec 12, 2012 at 3:49 PM, Roland Scheidegger srol...@vmware.com wrote: This is interesting, personally I'm fine with getting this merged. That said, there was a i965g driver upstream before (though