etnaviv: Supertiled texture support on gc3000
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 18 Apr 2017 11:34:50 +0000 (13:34 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 22 Apr 2017 15:49:29 +0000 (17:49 +0200)
commit9da0cd56c3f95081bd4cc7efe87d2b475019b17d
tree258524215afa47a3f4658b3c83692a18ad44c944
parent53e39f6df47fcfc19f36e425c0f880a9b1a2a7d6
etnaviv: Supertiled texture support on gc3000

Support supertiled textures on hardware that has the appropriate
feature flag SUPERTILED_TEXTURE.

Most of the scaffolding was already in place in etna_layout_multiple:

   case ETNA_LAYOUT_SUPER_TILED:
      *paddingX = 64;
      *paddingY = 64;
      *halign = TEXTURE_HALIGN_SUPER_TILED;

So this is just a matter of allowing it.

Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c
src/gallium/drivers/etnaviv/etnaviv_texture.c