svga: try to flag surfaces for sampling, in addition to rendering
authorBrian Paul <brianp@vmware.com>
Mon, 2 May 2016 16:29:52 +0000 (10:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 May 2016 21:40:48 +0000 (15:40 -0600)
commit05abaa65c745d74fb296006285b85d253cb11525
treef51c500ec88224104966b3570136c98493d99257
parentabc6432d54c4b4b50368f230634ed8a0d2c92e34
svga: try to flag surfaces for sampling, in addition to rendering

This silences some warnings when we try to sample from surfaces that were
created for drawing, such as when blitting from one of the framebuffer
surfaces.  We were already doing the opposite situation (adding a bind
flag for rendering to surfaces declared as texture sources).

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c