def test(self):
dev = self.dev
+ ctx = self.ctx
target = self.target
format = self.format
size = util_format_get_nblocksy(format, h) * stride
src_raw = os.urandom(size)
- ctx = self.dev.context_create()
-
ctx.surface_write_raw(src_surface, 0, 0, w, h, src_raw, stride)
ctx.surface_copy(dst_surface, 0, 0,
def main():
dev = Device()
+ ctx = dev.context_create()
suite = TestSuite()
targets = [
while zslice < depth >> level:
test = TextureTest(
dev = dev,
+ ctx = ctx,
target = target,
format = format,
width = size,
def test(self):
dev = self.dev
+ ctx = self.ctx
target = self.target
format = self.format
in_raw = os.urandom(size)
- ctx = self.dev.context_create()
-
ctx.surface_write_raw(surface, 0, 0, surface.width, surface.height, in_raw, stride)
out_raw = ctx.surface_read_raw(surface, 0, 0, surface.width, surface.height)
def main():
dev = Device()
+ ctx = dev.context_create()
suite = TestSuite()
targets = [
while zslice < depth >> level:
test = TextureTest(
dev = dev,
+ ctx = ctx,
target = target,
format = format,
width = size,