Re: [Mesa-dev] prep work for 64-bit integer support

2016-06-09 Thread Dave Airlie
>> >> I'm in no way opposed to having shareable "fudging" logic, so that it >> can be used by drivers with less sophisticated backends, or ones that >> are getting less development interest. Just want to make sure that a >> way to let the backend just deal with it remains. > > For r600, the lowerin

Re: [Mesa-dev] prep work for 64-bit integer support

2016-06-09 Thread Marek Olšák
On Thu, Jun 9, 2016 at 10:28 PM, Ilia Mirkin wrote: > On Thu, Jun 9, 2016 at 4:11 PM, Ian Romanick wrote: >> On 06/09/2016 11:26 AM, Ilia Mirkin wrote: >>> On Thu, Jun 9, 2016 at 2:07 PM, Ian Romanick wrote: On 06/08/2016 02:15 PM, Dave Airlie wrote: > While writing ARB_gpu_shader_int64

Re: [Mesa-dev] prep work for 64-bit integer support

2016-06-09 Thread Ilia Mirkin
On Thu, Jun 9, 2016 at 4:11 PM, Ian Romanick wrote: > On 06/09/2016 11:26 AM, Ilia Mirkin wrote: >> On Thu, Jun 9, 2016 at 2:07 PM, Ian Romanick wrote: >>> On 06/08/2016 02:15 PM, Dave Airlie wrote: While writing ARB_gpu_shader_int64 I realised I needed to change a lot of existing check

Re: [Mesa-dev] prep work for 64-bit integer support

2016-06-09 Thread Ian Romanick
On 06/09/2016 11:26 AM, Ilia Mirkin wrote: > On Thu, Jun 9, 2016 at 2:07 PM, Ian Romanick wrote: >> On 06/08/2016 02:15 PM, Dave Airlie wrote: >>> While writing ARB_gpu_shader_int64 I realised I needed to change >>> a lot of existing checks for doubles to 64bit, so I decided to >>> do that as much

Re: [Mesa-dev] prep work for 64-bit integer support

2016-06-09 Thread Ilia Mirkin
On Thu, Jun 9, 2016 at 2:07 PM, Ian Romanick wrote: > On 06/08/2016 02:15 PM, Dave Airlie wrote: >> While writing ARB_gpu_shader_int64 I realised I needed to change >> a lot of existing checks for doubles to 64bit, so I decided to >> do that as much in advance as possible. > > I didn't know you we

Re: [Mesa-dev] prep work for 64-bit integer support

2016-06-09 Thread Ian Romanick
On 06/08/2016 02:15 PM, Dave Airlie wrote: > While writing ARB_gpu_shader_int64 I realised I needed to change > a lot of existing checks for doubles to 64bit, so I decided to > do that as much in advance as possible. I didn't know you were working on that. I just started poking at more general si

[Mesa-dev] prep work for 64-bit integer support

2016-06-08 Thread Dave Airlie
While writing ARB_gpu_shader_int64 I realised I needed to change a lot of existing checks for doubles to 64bit, so I decided to do that as much in advance as possible. This adds a macro + interface to check if a type is 64-bit, which currently is only true for doubles, it then uses the new API in