summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python/gallium.i
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-18 01:08:06 +0900
committerJosé Fonseca <[email protected]>2008-07-18 01:20:44 +0900
commite74f94b39ac47a319ee21c526315fb6fbc1513de (patch)
tree1bfca5c69ac288172f200a8ea026bb8f874bf9ee /src/gallium/state_trackers/python/gallium.i
parent174c6912d68a954ff5eddf8b953b813e2eac3deb (diff)
python: Reimplement the generation of random texture samples in C.
Diffstat (limited to 'src/gallium/state_trackers/python/gallium.i')
-rw-r--r--src/gallium/state_trackers/python/gallium.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/gallium.i b/src/gallium/state_trackers/python/gallium.i
index 1c207a41b9c..d5b24b04ff8 100644
--- a/src/gallium/state_trackers/python/gallium.i
+++ b/src/gallium/state_trackers/python/gallium.i
@@ -51,6 +51,7 @@
#include "tgsi/util/tgsi_dump.h"
#include "st_device.h"
+#include "st_sample.h"
%}
@@ -454,6 +455,11 @@ error1:
pipe_put_tile_z($self, x, y, w, h, z);
}
+ void
+ sample_rgba(float *rgba) {
+ st_sample_surface($self, rgba);
+ }
+
unsigned
compare_tile_rgba(unsigned x, unsigned y, unsigned w, unsigned h, const float *rgba, float tol = 0.0)
{