[Mesa-dev] llvmpipe vs fbo-alphatest-formats

Dave Airlie airlied at gmail.com
Fri Dec 30 02:58:23 PST 2011


>
> was doing some piglit comparisons between softpipe and llvmpipe and
> noticed the fbo-alphatest-formats test fails on llvmpipe for all the
> I8 formats.
>
> Now I looked at the code generated for
> lp_tile_soa.c:lp_tile_i8_unorm_unswizzle_4ub and it references a[i+0]
> and a[i+1], if I change it to reference r[i + 0] and r[i + 1] the
> tests all pass, I suspect of course this code is reading off the end
> of the array for an I8_UNORM, but I'm not really sure what it expects
> to happen in this case.
>
> Maybe someone can take a look and let me know what the intentions were
> originally.
>

Okay this fixes it here, and even seems reasonable to me.

Dave.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-u_format-fix-inv_swizzles-generation.patch
Type: text/x-patch
Size: 1163 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20111230/13bda2e5/attachment.bin>


More information about the mesa-dev mailing list