r600: fix cubemap arrays
authorDave Airlie <airlied@redhat.com>
Tue, 14 Nov 2017 22:26:23 +0000 (08:26 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Nov 2017 01:26:11 +0000 (11:26 +1000)
commit3ceee04a4f963694012ca7f9acd3c747a036472e
treeaf912b7b7fd3ba2cc2d2f9db25277cd7b919962c
parent7676e71113f0a5312de83c966458f38610a544af
r600: fix cubemap arrays

A lot of cubemap array piglits fail, port the texture type
picking code from radeonsi which seems to fix most of them.

For images I will port the rest of the code.

Fixes:
getteximage-depth gl_texture_cube_map_array-*
fbo-generatemipmap-cubemap array
getteximage-targets cube_array
amongst others.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c