From 76185ecad6c220824b9f9fa96a3323ce38b17d52 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 11 Jan 2010 13:55:24 +0000 Subject: python: Set PIPE_TEXTURE_USAGE_RENDER_TARGET instead of DISPLAY_TARGET. As the python state tracker is not integrated with window system an cannot present surfaces directly. --- .../python/tests/regress/fragment-shader/fragment-shader.py | 2 +- .../state_trackers/python/tests/regress/vertex-shader/vertex-shader.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gallium/state_trackers/python/tests') diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py b/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py index eed6cdd1e6..8d3bf9d4d7 100644 --- a/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py +++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py @@ -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 diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py index 41bebd0604..01bf5a3210 100644 --- a/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py +++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/vertex-shader.py @@ -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 -- cgit v1.2.3 From 857b37980ce62a45f5d0b89ea613edeb6a81f9b7 Mon Sep 17 00:00:00 2001 From: Michal Krol Date: Mon, 11 Jan 2010 20:53:28 +0100 Subject: regress: Add .gitgnore for *.png files. --- .../state_trackers/python/tests/regress/fragment-shader/.gitignore | 1 + src/gallium/state_trackers/python/tests/regress/vertex-shader/.gitignore | 1 + 2 files changed, 2 insertions(+) create mode 100644 src/gallium/state_trackers/python/tests/regress/fragment-shader/.gitignore create mode 100644 src/gallium/state_trackers/python/tests/regress/vertex-shader/.gitignore (limited to 'src/gallium/state_trackers/python/tests') diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/.gitignore b/src/gallium/state_trackers/python/tests/regress/fragment-shader/.gitignore new file mode 100644 index 0000000000..e33609d251 --- /dev/null +++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/.gitignore @@ -0,0 +1 @@ +*.png diff --git a/src/gallium/state_trackers/python/tests/regress/vertex-shader/.gitignore b/src/gallium/state_trackers/python/tests/regress/vertex-shader/.gitignore new file mode 100644 index 0000000000..e33609d251 --- /dev/null +++ b/src/gallium/state_trackers/python/tests/regress/vertex-shader/.gitignore @@ -0,0 +1 @@ +*.png -- cgit v1.2.3