python: Set PIPE_TEXTURE_USAGE_RENDER_TARGET instead of DISPLAY_TARGET.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 11 Jan 2010 13:55:24 +0000 (13:55 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 11 Jan 2010 14:01:06 +0000 (14:01 +0000)
As the python state tracker is not integrated with window system an
cannot present surfaces directly.

src/gallium/state_trackers/python/samples/gs.py
src/gallium/state_trackers/python/samples/tri.py
src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py
src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py

index 1ceead5f17cf81cb4e5a54c1d4487e0ae9fee85d..6cffe3fd06543f296944cb2d8467bcd1f595e39d 100644 (file)
@@ -136,7 +136,7 @@ def test(dev):
     cbuf = dev.texture_create(
         PIPE_FORMAT_X8R8G8B8_UNORM,
         width, height,
-        tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
+        tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET,
     ).get_surface()
     zbuf = dev.texture_create(
         PIPE_FORMAT_Z16_UNORM,
index af80426dc6cdc90965fe11bcfba68d18aad33ef6..2042f705c2b8c5d94a77224de4ed03e4964116cd 100644 (file)
@@ -136,7 +136,7 @@ def test(dev):
     cbuf = dev.texture_create(
         PIPE_FORMAT_X8R8G8B8_UNORM, 
         width, height,
-        tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
+        tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET,
     ).get_surface()
     zbuf = dev.texture_create(
         PIPE_FORMAT_Z16_UNORM, 
index eed6cdd1e6460be4771991ee5463d7d95a949bed..8d3bf9d4d7e27d1b862176a646e191c6cc58dfc2 100644 (file)
@@ -114,7 +114,7 @@ def test(dev, name):
     cbuf = dev.texture_create(
         PIPE_FORMAT_X8R8G8B8_UNORM,
         width, height,
-        tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
+        tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET,
     ).get_surface()
     fb = Framebuffer()
     fb.width = width
index 41bebd0604a423029f033c06b7ca2c29d4d25213..01bf5a3210d0f9bcade5a71d193d4947333fea41 100644 (file)
@@ -114,7 +114,7 @@ def test(dev, name):
     cbuf = dev.texture_create(
         PIPE_FORMAT_X8R8G8B8_UNORM,
         width, height,
-        tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
+        tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET,
     ).get_surface()
     fb = Framebuffer()
     fb.width = width