[Mesa-dev] [PATCH 0/2] Patches to try to fix draw-pixel-with-textures in swrast

Liu Aleaxander aleaxander at gmail.com
Sat Nov 19 06:30:00 PST 2011


On Sat, Nov 19, 2011 at 3:25 AM, Eric Anholt <eric at anholt.net> wrote:
> On Fri, 18 Nov 2011 15:38:46 +0800, Yuanhan Liu <yuanhan.liu at linux.intel.com> wrote:
>>
>> +     glDrawPixels(20, 20, GL_RGBA, GL_FLOAT, pixels);
>> +
>> +     /* Here just sample a small set of pixels */
>> +     pass &= piglit_probe_pixel_rgba(5, 5, expected);
>> +     pass &= piglit_probe_pixel_rgba(7, 12, expected);
>> +     pass &= piglit_probe_pixel_rgba(10, 10, expected);
>> +     pass &= piglit_probe_pixel_rgba(18, 18, expected);
>
> there's piglit_probe_rect_rgba() available instead of picking some
> arbitrary subset of pixels.

Oh, I didn't noticed that helper function. Thanks for the hint. Will
fix it next week.

-- 
regards
Yuanhan Liu


More information about the mesa-dev mailing list