Mesa (master): st/egl: Create primary texture not display target

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Wed Aug 5 17:34:01 UTC 2009


Module: Mesa
Branch: master
Commit: 8ccec83e63932d78bb67638e013b9645e609da42
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ccec83e63932d78bb67638e013b9645e609da42

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Wed Aug  5 19:15:21 2009 +0100

st/egl: Create primary texture not display target

---

 src/gallium/state_trackers/egl/egl_surface.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/state_trackers/egl/egl_surface.c b/src/gallium/state_trackers/egl/egl_surface.c
index 7413c9b..d4cd2d3 100644
--- a/src/gallium/state_trackers/egl/egl_surface.c
+++ b/src/gallium/state_trackers/egl/egl_surface.c
@@ -98,8 +98,8 @@ drm_create_texture(_EGLDriver *drv,
 		goto err_buf;
 
 	memset(&templat, 0, sizeof(templat));
-	templat.tex_usage |= PIPE_TEXTURE_USAGE_DISPLAY_TARGET;
-	templat.tex_usage |= PIPE_TEXTURE_USAGE_RENDER_TARGET;
+	templat.tex_usage = PIPE_TEXTURE_USAGE_RENDER_TARGET;
+	templat.tex_usage |= PIPE_TEXTURE_USAGE_PRIMARY;
 	templat.target = PIPE_TEXTURE_2D;
 	templat.last_level = 0;
 	templat.depth[0] = 1;




More information about the mesa-commit mailing list