vrend: glTextureView will check whether the base texture is immutable

Signed-off-by: chenjiangnan <chen.jiangnan@zlingsmart.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 9746e3a..022ebdd 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -1878,7 +1878,7 @@
    surf->id = res->id;
 
    if (!has_bit(res->storage_bits, VREND_STORAGE_GL_BUFFER) &&
-         vrend_format_can_texture_view(format)) {
+         has_bit(res->storage_bits, VREND_STORAGE_GL_IMMUTABLE)) {
       /* We don't need texture views for buffer objects.
        * Otherwise we only need a texture view if the
        * a) formats differ between the surface and base texture