This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Galaxy S6 (SM-G920S)/Mali-T760 Vulkan 2D Array Layer Mipmap error

The mobile hardware spec :

Galaxy S6 (SM-G920s)

Android OS : 7.0 Nougat

GPU  : Mali-T760

GL_VERSION : OpenGL ES 3.2

Vulkan Version : 1.0.26

Hi I'm developing on my galaxy S6 and S8

But I think there is a problem on Mail-T760 Vulkan driver.

I made a feature that I can make a mipmap chain on texture cube.

I mean in the code 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
VkImageCreateInfo imageInfo{ VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO };
imageInfo.imageType = VK_IMAGE_TYPE_2D;
imageInfo.format = TexCubeFormat;
imageInfo.mipLevels = calculatedMipLevels;
imageInfo.arrayLayers = 6; // because It's Texture Cube
...
// make VkImage
VkImageViewCreateInfo view{ VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO };
view.viewType = VK_IMAGE_VIEW_TYPE_CUBE;
view.format = TexCubeFormat;
view.components = { VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_G, VK_COMPONENT_SWIZZLE_B, VK_COMPONENT_SWIZZLE_A };
view.subresourceRange.aspectMask = aspectMask;
view.subresourceRange.baseMipLevel = 0;
view.subresourceRange.levelCount = info.mipLevels;
view.subresourceRange.baseArrayLayer = 0;
view.subresourceRange.layerCount = 6; // because It's Texture Cube
view.image = image;
...
// make ImageView
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

I made a mipmap for all array layers of texture2D. Because It's texture cube, I used the array layer count 6.

With this code, The code works with what I think on the Desktop, and other Galaxy S8 with Mali-G71.

But It does not work on Galaxy S6 with Mali-T760.

I checked it with RenderDoc. It shows that There are only black pixels from second mipmaps to last mipmaps on every mipmap chain except for the X+ layer.

X+ layer has all perfect mipmap pixels. But others have definitely mipmap chains, but only have black colors.

So the result is..

and the renderdoc result is

0