r300g: align the height of NPOT textures to POT
[mesa.git] / src / gallium / state_trackers / xorg / xvmc / surface.c
index 87d1dfaace29ab21b86918b6edd67ae4247f1a5c..12d94e0c5ca1d6be028dc7f131afabd5791606f3 100644 (file)
@@ -106,7 +106,7 @@ CreateOrResizeBackBuffer(struct pipe_video_context *vpipe, unsigned int width, u
    template.width0 = width;
    template.height0 = height;
    template.depth0 = 1;
-   template.tex_usage = PIPE_TEXTURE_USAGE_DISPLAY_TARGET;
+   template.tex_usage = PIPE_TEXTURE_USAGE_SHARED;
 
    tex = vpipe->screen->texture_create(vpipe->screen, &template);
    if (!tex)