python/tests: We're using a rgba8 rendertarget so sample only in the [0, 1] range.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Apr 2010 16:36:37 +0000 (17:36 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 1 Apr 2010 16:46:59 +0000 (17:46 +0100)
progs/gallium/python/tests/texture_blit.py

index 385cf16cd5e86a4582cbbeecbf32962b08a81095..a68c081931345bad672132b191e9f6a173a820a9 100755 (executable)
@@ -191,7 +191,7 @@ class TextureColorSampleTest(TestCase):
             zslice = zslice,
         )
         
-        ctx.surface_sample_rgba(surface, expected_rgba)
+        ctx.surface_sample_rgba(surface, expected_rgba, True)
         
         ctx.set_fragment_sampler_texture(0, texture)
 
@@ -428,7 +428,7 @@ class TextureDepthSampleTest(TestCase):
             zslice = zslice,
         )
 
-        ctx.surface_sample_rgba(surface, expected_rgba)
+        ctx.surface_sample_rgba(surface, expected_rgba, True)
         
         ctx.set_fragment_sampler_texture(0, texture)