[Mesa-dev] [PATCH] gallium: add initial pure integer support

Dave Airlie airlied at gmail.com
Sun Sep 25 12:22:41 PDT 2011


On Sun, Sep 25, 2011 at 7:09 PM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This add support for unsigned/signed integer types via adding a 'pure' bit
> in the format description table. It adds 4 new u_format get/put hooks,
> for get/put uint and get/put sint so that accessors can get native access
> to the integer bits. This is used to avoid precision loss via float converting
> paths.
>
> It doesn't add any float fetchers for these types at the moment, GL doesn't
> require float fetching from these types and I expect we'll introduce a lot
> of hidden bugs if we start allowing such conversions without an API mandating
> it.
>

Just a note to say there is one missing bit from this for GL support,
the UINT types should have SINT fetchers,
and the SINT types should have UINT fetchers, thanks to calim for reminding me.

I'll add this in a later iteration.

Dave.


More information about the mesa-dev mailing list