diff options
Diffstat (limited to 'src/gallium/state_trackers/python')
| -rwxr-xr-x | src/gallium/state_trackers/python/retrace/interpreter.py | 4 | ||||
| -rw-r--r-- | src/gallium/state_trackers/python/st_softpipe_winsys.c | 1 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/src/gallium/state_trackers/python/retrace/interpreter.py b/src/gallium/state_trackers/python/retrace/interpreter.py index 6f0bd6ae52..348f2e4368 100755 --- a/src/gallium/state_trackers/python/retrace/interpreter.py +++ b/src/gallium/state_trackers/python/retrace/interpreter.py @@ -314,7 +314,7 @@ class Screen(Object):          if texture is None:              return None          transfer = Transfer(texture.get_surface(face, level, zslice), x, y, w, h) -        if transfer and usage != gallium.PIPE_TRANSFER_WRITE: +        if transfer and usage & gallium.PIPE_TRANSFER_READ:              if self.interpreter.options.all:                  self.interpreter.present(transfer.surface, 'transf_read', x, y, w, h)          return transfer @@ -459,7 +459,7 @@ class Context(Object):          sys.stdout.flush()      def set_constant_buffer(self, shader, index, buffer): -        if buffer is not None: +        if buffer is not None and buffer.buffer is not None:              self.real.set_constant_buffer(shader, index, buffer.buffer)              self.dump_constant_buffer(buffer.buffer) diff --git a/src/gallium/state_trackers/python/st_softpipe_winsys.c b/src/gallium/state_trackers/python/st_softpipe_winsys.c index f0a4826a00..f0abd12e3d 100644 --- a/src/gallium/state_trackers/python/st_softpipe_winsys.c +++ b/src/gallium/state_trackers/python/st_softpipe_winsys.c @@ -172,6 +172,7 @@ st_softpipe_surface_buffer_create(struct pipe_winsys *winsys,                                    unsigned width, unsigned height,                                    enum pipe_format format,                                    unsigned usage, +                                  unsigned tex_usage,                                    unsigned *stride)  {     const unsigned alignment = 64; | 
