gallium/util: specify binding type for blit src texture
authorBrian Paul <brianp@vmware.com>
Mon, 19 Apr 2010 16:32:23 +0000 (10:32 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 19 Apr 2010 16:32:25 +0000 (10:32 -0600)
Fixes fd.o bug 27711.

src/gallium/auxiliary/util/u_blit.c

index 7850f81e585529267e374f9f51f49c9d68f47034..e45310b9bb773f3b4f78d9fae3d600f8ff226bb1 100644 (file)
@@ -374,6 +374,7 @@ util_blit_pixels_writemask(struct blit_state *ctx,
       texTemp.width0 = srcW;
       texTemp.height0 = srcH;
       texTemp.depth0 = 1;
+      texTemp.bind = PIPE_BIND_SAMPLER_VIEW;
 
       tex = screen->resource_create(screen, &texTemp);
       if (!tex)