summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xorg
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-12-08 15:37:17 +0100
committerMarek Olšák <[email protected]>2012-12-12 13:09:54 +0100
commit25409c6da8163d9acb386511aef0c11577c7aadb (patch)
treeda38c5f59a9703c6feb89d9fac3a6c615a3bebc0 /src/gallium/state_trackers/xorg
parentc1f704073b8992f3556c8e44a7fc496e250ba3ae (diff)
gallium: remove pipe_surface::usage
Not really used by anybody now. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xorg')
-rw-r--r--src/gallium/state_trackers/xorg/xorg_exa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c
index c8f20acdec7..d78ab74aeef 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa.c
@@ -1062,9 +1062,7 @@ struct pipe_surface *
xorg_gpu_surface(struct pipe_context *pipe, struct exa_pixmap_priv *priv)
{
struct pipe_surface surf_tmpl;
- memset(&surf_tmpl, 0, sizeof(surf_tmpl));
- u_surface_default_template(&surf_tmpl, priv->tex,
- PIPE_BIND_RENDER_TARGET);
+ u_surface_default_template(&surf_tmpl, priv->tex);
return pipe->create_surface(pipe, priv->tex, &surf_tmpl);