[Mesa-dev] [PATCH 1/2] mesa: remove buggy assertions in unpack Z24

Eric Anholt eric at anholt.net
Mon Nov 21 09:52:24 PST 2011


On Sun, 20 Nov 2011 15:08:55 +0100, Marek Olšák <maraeo at gmail.com> wrote:
> unpack_float_z_Z24_X8 fails with -O2 in:
> - fbo-blit-d24s8
> - fbo-depth-sample-compare
> - fbo-readpixels-depth-formats
> - glean/depthStencil
> 
> With -O0, it works fine.
> 
> I am removing all the assertions. There's not much point in having them,
> is there?

Is -ffast-math involved at all?

At a guess, replacing "* scale" with "/ (float)0xffffff" makes the
failure happen either way?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111121/3259e25d/attachment.pgp>


More information about the mesa-dev mailing list