svga: add, use SVGA3D_SURFACE_HINT_VOLUME flag

Reviewed-by: Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
Brian Paul 2013-01-30 17:43:57 -07:00
parent 9a91ce9448
commit 9eff5e905f
2 changed files with 5 additions and 0 deletions

View File

@ -1147,6 +1147,7 @@ typedef enum {
SVGA3D_SURFACE_HINT_WRITEONLY = (1 << 8),
SVGA3D_SURFACE_MASKABLE_ANTIALIAS = (1 << 9),
SVGA3D_SURFACE_AUTOGENMIPMAPS = (1 << 10),
SVGA3D_SURFACE_HINT_VOLUME = (1 << 15),
} SVGA3dSurfaceFlags;
typedef

View File

@ -415,6 +415,10 @@ svga_texture_create(struct pipe_screen *screen,
tex->key.numFaces = 1;
}
if (template->target == PIPE_TEXTURE_3D) {
tex->key.flags |= SVGA3D_SURFACE_HINT_VOLUME;
}
tex->key.cachable = 1;
if (template->bind & PIPE_BIND_SAMPLER_VIEW)