python: s/pitch/stride/
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 24 Mar 2009 21:21:37 +0000 (21:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 25 Mar 2009 21:03:15 +0000 (21:03 +0000)
src/gallium/state_trackers/python/p_context.i
src/gallium/state_trackers/python/retrace/interpreter.py

index 1fdbdf98b26d5d0a0a1ba43dba8e3320b83d5d70..178ab0e24ef34a05afa1171cf966e85f8455dfd6 100644 (file)
@@ -151,7 +151,7 @@ struct st_context {
    }
 
    void set_vertex_buffer(unsigned index,
-                          unsigned pitch
+                          unsigned stride
                           unsigned max_index,
                           unsigned buffer_offset,
                           struct st_buffer *buffer)
@@ -160,7 +160,7 @@ struct st_context {
       struct pipe_vertex_buffer state;
       
       memset(&state, 0, sizeof(state));
-      state.stride = pitch;
+      state.stride = stride;
       state.max_index = max_index;
       state.buffer_offset = buffer_offset;
       state.buffer = buffer ? buffer->buffer : NULL;
index 3050904ece3ae50146635a5da8f608580d2bae53..6b9587bf2bf844170beac0df67ae1d2a34db40ce 100755 (executable)
@@ -424,7 +424,7 @@ class Context(Object):
             vbuf = vbufs[i]
             self.real.set_vertex_buffer(
                 i,
-                pitch = vbuf.pitch,
+                stride = vbuf.stride,
                 max_index = vbuf.max_index,
                 buffer_offset = vbuf.buffer_offset,
                 buffer = vbuf.buffer,
@@ -452,7 +452,7 @@ class Context(Object):
             for velem in self.velems:
                 vbuf = self.vbufs[velem.vertex_buffer_index]
 
-                offset = vbuf.buffer_offset + velem.src_offset + vbuf.pitch*index
+                offset = vbuf.buffer_offset + velem.src_offset + vbuf.stride*index
                 format = {
                     gallium.PIPE_FORMAT_R32_FLOAT: 'f',
                     gallium.PIPE_FORMAT_R32G32_FLOAT: '2f',