svga: add, use SVGA3D_SURFACE_HINT_VOLUME flag
Reviewed-by: Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
9a91ce9448
commit
9eff5e905f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue