radeonsi/gfx9: fix most things wrong with shader images
authorMarek Olšák <marek.olsak@amd.com>
Sun, 23 Apr 2017 21:06:38 +0000 (23:06 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Apr 2017 11:08:05 +0000 (13:08 +0200)
commit5c94779585e24e8bd1bd41707521584af4251de3
tree9621243bbffa25474b7c39a6439cf616e93f6962
parent65e0c3fba74ee98cacadbba4bd005b930609b65e
radeonsi/gfx9: fix most things wrong with shader images

There are 2 major hw changes:
- The address must always point to the address of level 0. GFX9 tiling
  modes don't allow binding to a non-0 level.
- 3D must always be bound as 3D, because 2D and 3D use entirely different
  tiling modes, and the texture target determines which set of modes is
  used.

Cc: 17.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_state.c