Mesa (mesa_7_5_branch): python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Jul 15 15:02:44 UTC 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: c68f659be3850c5e099311be7c58f8930954631d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c68f659be3850c5e099311be7c58f8930954631d
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Jul 15 15:37:04 2009 +0100
python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.
More common. True fix would be to use whatever the screen supports though.
---
src/gallium/state_trackers/python/samples/tri.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/state_trackers/python/samples/tri.py b/src/gallium/state_trackers/python/samples/tri.py
index 4b96598..b721e0b 100644
--- a/src/gallium/state_trackers/python/samples/tri.py
+++ b/src/gallium/state_trackers/python/samples/tri.py
@@ -139,7 +139,7 @@ def test(dev):
tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
).get_surface()
zbuf = dev.texture_create(
- PIPE_FORMAT_Z32_UNORM,
+ PIPE_FORMAT_Z16_UNORM,
width, height,
tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL,
).get_surface()
More information about the mesa-commit
mailing list