[Mesa-dev] gallium scaled types

2011-09-11 Thread Dave Airlie
Hi guys, not really finding a great explaination in my 2 minute search, of what the USCALED and SSCALED types are representative of On r600 hw at least we have a SCALED type, which seems to be an integer in float point format, as well as an INT type which is natural integers. Are the gallium sca

Re: [Mesa-dev] Fixup: Use C++ style constant member functions for is_one and is_zero.

2011-09-11 Thread Tolga Dalman
Hi Kenneth, On Fri, 9 Sep 2011 14:41:45 -0700 Kenneth Graunke wrote: > - if (reg->type == BRW_REGISTER_TYPE_F) { > - return reg->imm.f == 0.0; > + if (type == BRW_REGISTER_TYPE_F) { > + return imm.f == 0.0; [...] > - if (reg->type == BRW_REGISTER_TYPE_F) { > - return reg->i

[Mesa-dev] [PATCH] pb_buffer: inline 'base' sub-struct

2011-09-11 Thread Marek Olšák
--- src/gallium/auxiliary/pipebuffer/pb_buffer.h | 24 ++ .../auxiliary/pipebuffer/pb_buffer_fenced.c| 32 ++-- .../auxiliary/pipebuffer/pb_buffer_malloc.c|8 ++-- src/gallium/auxiliary/pipebuffer/pb_bufmgr_cache.c | 30 +-

Re: [Mesa-dev] Fixup: Use C++ style constant member functions for is_one and is_zero.

2011-09-11 Thread Corbin Simpson
I haven't read the surrounding code, but I'm relatively sure this patch covers whether or not the given register can be filled with a constant zero or one, which would be represented in the shader as a special swizzle or selector. In that case, you'd only want to match exact 0.0 and 1.0, but that's

Re: [Mesa-dev] gallium scaled types

2011-09-11 Thread Dave Airlie
On Sun, Sep 11, 2011 at 10:11 AM, Dave Airlie wrote: > Hi guys, > > not really finding a great explaination in my 2 minute search, of what > the USCALED and SSCALED types are representative of > > On r600 hw at least we have a SCALED type, which seems to be an > integer in float point format, as w