Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-30 Thread Roland Scheidegger
Am 29.01.2015 um 22:39 schrieb Axel Davy: > Hi, > > for Gallium Nine we use ARR and UARL. > > Do all cards supporting integers support indexing with an integer > register ? > If yes we could remove our UARL usage. The idea would indeed have been that drivers would just do that on their own if the

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-30 Thread Roland Scheidegger
Am 30.01.2015 um 00:06 schrieb Brian Paul: > On 01/29/2015 02:20 PM, Roland Scheidegger wrote: >> Hi, >> >> the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes >> that indirections can only be done through the address reg and has quite >> some extra code to deal with this. Even t

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-30 Thread Jose Fonseca
On 29/01/15 21:20, Roland Scheidegger wrote: Hi, the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes that indirections can only be done through the address reg and has quite some extra code to deal with this. Even though hardware and apis which worked like that are definitely

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-30 Thread Marek Olšák
The fact r300 has ARL is well known. However, r600 has it too. The r600 equivalent of ARL is "MOVA", which allows translating TGSI indirect addressing into bytecode directly. So there is a rather significant user base of gallium which uses hardware with ARL. I am not opposed to the idea of nuking

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Rob Clark
On Thu, Jan 29, 2015 at 6:06 PM, Brian Paul wrote: > On 01/29/2015 02:20 PM, Roland Scheidegger wrote: >> >> Hi, >> >> the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes >> that indirections can only be done through the address reg and has quite >> some extra code to deal with

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Brian Paul
On 01/29/2015 02:20 PM, Roland Scheidegger wrote: Hi, the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes that indirections can only be done through the address reg and has quite some extra code to deal with this. Even though hardware and apis which worked like that are defini

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Rob Clark
On Thu, Jan 29, 2015 at 5:31 PM, Rob Clark wrote: > On Thu, Jan 29, 2015 at 4:20 PM, Roland Scheidegger > wrote: >> Hi, >> >> the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes >> that indirections can only be done through the address reg and has quite >> some extra code to d

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Rob Clark
On Thu, Jan 29, 2015 at 4:20 PM, Roland Scheidegger wrote: > Hi, > > the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes > that indirections can only be done through the address reg and has quite > some extra code to deal with this. Even though hardware and apis which > worked l

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Eric Anholt
Roland Scheidegger writes: > Hi, > > the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes > that indirections can only be done through the address reg and has quite > some extra code to deal with this. Even though hardware and apis which > worked like that are definitely old by

Re: [Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Axel Davy
Hi, for Gallium Nine we use ARR and UARL. Do all cards supporting integers support indexing with an integer register ? If yes we could remove our UARL usage. As for ARR, if all cards are ok with normal registers, we could use a normal one too, as long as we can get the same rounding behaviour

[Mesa-dev] killing off the address reg in tgsi

2015-01-29 Thread Roland Scheidegger
Hi, the address reg in tgsi is quite a nuisance. glsl-to-tgsi code assumes that indirections can only be done through the address reg and has quite some extra code to deal with this. Even though hardware and apis which worked like that are definitely old by now. Thus, I'm proposing the address reg